2 ms·
But that's why it's often a bad idea to test exact equality of floats: the equality test isn't continuous. In fact, for float computations it's usually even mo
by edflsafoiewq 7y ago
But that's why it's often a bad idea to test exact equality of floats: the equality test isn't continuous.
In fact, for float computations it's usually even more important to use continuous (ie. error tolerant) functions, since floating-point operations can introduce errors.
- saagarjha 7y agoComparing IEEE 754 floating point number is well defined and computable because the domain is discontinuous. It’d be stupid to use anything else…
- deleted 7y ago[deleted]