News for hackers. Stuff that matters.
Re:How many floating-point numbers are in the interval [0,1]? by nine_k on Wednesday March 01, 2017 @07:13PM (#13770104)
-0 is "below zero, but for so little that we cannot represent", so it's outside [0, 1].
Re:How many floating-point numbers are in the interval [0,1]? by kr7 on Wednesday March 01, 2017 @07:32PM (#13770224)
Though for the purposes of comparisons, -0 and +0 are the same in IEEE 754.

So the expression "x >= 0.0f && x <= 1.0f" is true for x = -0.