Re:Math.min(Math.max(num, min), max)
by pmiller2 on Thursday August 20, 2020 @08:46PM
(#24230717)
IEEE754 has both infinity and NaN. They are different. NaN is always the result of an invalid operation, such as trying to take the square root of a negative number. Infinity is for when the result would be valid, but is too large in magnitude to represent. There is both positive and negative infinity.
[ Parent
| on HN ]
There are no comments on this comment yet.