News for hackers. Stuff that matters.
Re:Is Cobol holding you hostage with Math? by m314 on Sunday July 29, 2018 @10:22AM (#17638259)
The operations on floating point numbers do not behave like rational numbers. Floating point 1.0/3.0 is not equal to the rational 1/3. It's the same up to a margin of error, yes, but that's where the emulation part comes in. It would also be fair to say that floating point numbers are "emulated rationals".
Re:Is Cobol holding you hostage with Math? by rhaps0dy on Monday July 30, 2018 @09:34AM (#17644276)
Floating point numbers behave like rational numbers _with denominators that are powers of 2 only_.