Re:How many floating-point numbers are in the interval [0,1]?
by effie on Sunday March 12, 2017 @07:52AM
(#13850303)
> There is no "different implementation of IEEE 754" that could give a different result in double precision for that example.
How do you know that?
Re:How many floating-point numbers are in the interval [0,1]?
by sunfish on Sunday March 12, 2017 @12:46PM
(#13851532)
IEEE 754 is a standard, and it requires a specific, bitwise-reproducible, answer for the computation in question. I'm the author of most of the floating-point tests in WebAssembly's conformance testsuite, which tests such things in practice across several hardware platforms.
One of the half-truths in the presentation (in the intro) is that IEEE 754 is a mixture of requirements and recommendations. IEEE 754 does have both requirements and recommendations, however what the presentation doesn't say is that, within a given format like double precision (aka binary64), the basic operations like add, subtract, multiply, divide, squareRoot, etc.) have exactly one possible result for any given input (except that NaNs may have some implementation-defined bits, though this is usually unimportant).
There are reasonable criticisms of IEEE 754; that's not the issue.