2 ms·
That is in fact what we do in IEEE 754 floating point! We have +0 and -0; 1/+0 = +∞ and 1/-0 = -∞. However, this means that IEEE 754 floating point violates s
by kragen 4y ago
That is in fact what we do in IEEE 754 floating point! We have +0 and -0; 1/+0 = +∞ and 1/-0 = -∞. However, this means that IEEE 754 floating point violates substitutability, the most basic property of equality, because +0 == -0 but in some cases f(+0) ≠ f(-0).
You may enjoy Tom 7's paper/movie about this: http://tom7.org/nand/ http://tom7.org/nand/