2 ms·
Well, duh. One of those numbers isn't accurately representable in IEEE 754 64-bit "double" values, which is likely what all of the failing languages use. If y
by loeg 8y ago
Well, duh. One of those numbers isn't accurately representable in IEEE 754 64-bit "double" values, which is likely what all of the failing languages use.
If you want more than 53 significant bits, you need something wider than a 64-bit IEEE double. And anyone who cares about such precision knows this and will expect to use a higher precision library. (Or is an incredibly specialized math language, like Wolfram.)
If you think having only 53 significant bits is bad, you should see how many bits common trigonometry operations lose in libm implementations.
Another fun example: video games (historically) have thrown away even 53 significant bits for the higher performing 32-bit floats.