4 ms·
Yeah, this is a IEEE754 floating point issue. I'm not sure why it seems there hasn't been any progress made on making floating point types less error-prone in
by kerkeslager 3y ago
Yeah, this is a IEEE754 floating point issue.
I'm not sure why it seems there hasn't been any progress made on making floating point types less error-prone in the last few decades.
- bazoom42 3y agoRounding errors are unavoidable when representing an infinite amout of numbers in a fixed number of bits. But in many cases a decimal type (like in C#) would have more intuitive behvior than binary floating point. A decimal type have been proposed for JavaScript but I dont know how far along it is.