Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sujitnair
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
by
sujitnair
6y ago
I find the following easier to visualize. If L is the lower bound and U is the upper bound, and if you visualize L, U as two points on the real number line, then: left_of_U ( right_of_L (num)) = right_of_L ( left_of_U (num)) = clamped versi