3 ms·
Yes, 1.6 is. But the actual value being stored is between 1.6 and 1.6000000000000001 (in the double case) -- you have to round it to display it as decimal. I'
by haberman 14y ago
Yes, 1.6 is. But the actual value being stored is between 1.6 and 1.6000000000000001 (in the double case) -- you have to round it to display it as decimal.
I'm working on a program right now to give a detailed dump of a double/float's value, to make this as clear as possible (and I'm learning a lot in the process).
EDIT: got an initial revision out there; check out: https://github.com/haberman/dumpfp https://github.com/haberman/dumpfp