News for hackers. Stuff that matters.
Re:9999999999999999.0 – 9999999999999998.0 by zokier on Saturday January 05, 2019 @06:07PM (#18834929)
I think there is argument to be made for high-level languages defaulting for arbitrary precision math ("make it correct first, fast second"). But considering that we are still fumbling around with fixed-width integers and that is much simpler domain after all, I don't hold my breath on "solving" the problem of reals any time soon.
Re:9999999999999999.0 – 9999999999999998.0 by Gibbon1 on Sunday January 06, 2019 @04:58PM (#18840994)
That's exactly my point, why is the default a lossy format? And consider the distinction between variables and calculations. Formats like IEEE754 are designed for performing fast high accuracy transformations on matrices. I have no complaints about that. But the default arbitrary number format should be able to store exact integers and ratio's.