Map a 32 bit float to a 32 bit integer
- by zounds
Is there a way to map floats to ints or unsigned ints so that with the exception of NaN, order is preserved?
So if a and b are floats, and F is the mapping function,
a < b implies F(a) < F(b)
and
a == b implies F(a) == F(b)