![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: Behaviour of int() unexpectedby Anonymous Monk |
on Mar 10, 2025 at 21:32 UTC ( [id://11164221]=note: print w/replies, xml ) | Need Help?? |
What Every Programmer Should Know About Floating-Point Arithmetic: https://floating-point-gui.de/ 8.95 is stored as 8.94999980926513671875 and int rounds down.
In Section
Seekers of Perl Wisdom
|
|