in reply to While loop with addition goes weird
That means it can't be expressed without rounding error as a binary floating point number.(5 and 2 are different primes), pretty much like how you can't express 1/3 as a finite decimal floating point number without.
see also Humans have too many fingers and What Every Computer Scientist Should Know About Floating-Point Arithmetic
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: While loop with addition goes weird (binary float rounding error)
by chiel (Initiate) on Apr 08, 2018 at 13:52 UTC | |
by afoken (Chancellor) on Apr 08, 2018 at 14:24 UTC | |
by BillKSmith (Monsignor) on Apr 09, 2018 at 04:00 UTC | |
by Anonymous Monk on Apr 13, 2018 at 19:50 UTC | |
by BillKSmith (Monsignor) on Apr 14, 2018 at 13:08 UTC |