![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Behaviour of int() unexpectedby ikegami (Patriarch) |
on Mar 11, 2025 at 00:19 UTC ( [id://11164227]=note: print w/replies, xml ) | Need Help?? |
Perl normally uses double for floating point numbers, even on 32-bit machines. You can find out what your perl uses as follows:
A double is an IEEE double-precision number on a desktop computer. As such, 8.95 is actually stored as 0x1.1E66666666666 * 2^3 = 8.949999999999999289457264239899814128875732421875.
In Section
Seekers of Perl Wisdom
|
|