3 ms·
> Also, NaR compares equal to itself, fixing one of the biggest bugs in floating point. Wait, so with posits, sqrt(-7) == sqrt(-4)? And 1e42^42 == 0.0/0.0? And
by nwallin 5y ago
> Also, NaR compares equal to itself, fixing one of the biggest bugs in floating point.
Wait, so with posits, sqrt(-7) == sqrt(-4)? And 1e42^42 == 0.0/0.0? And this is supposed to be a good thing?
The semantics around NaN, +/- 0/Inf are really important. I feel like most of the proponents of posits don't understand why it's so vitally important that these constructs operate the way that they do. Maybe there are some useful things to be learned from posits, but it's difficult to take posits seriously when two values can compare equal when they are quite obviously not.
- adgjlsfhk1 5y agoIn floating point 2^54 == 1+2^54 and 1/0 == 2/0 == -ln(0). Every floating point value is an ambiguous result of infinitely many calculations with real numbers. When you do an invalid calculation, the most important thing to know is that you did something invalid.