kresike has asked for the wisdom of the Perl Monks concerning the following question:
I suppose there is some small thing I am missing in the maze of computers representing floating point numbers, I just can't figure out what it is.
What is it I'm missing ?
The code above gives me 864.300000000001 as result on perl v5.14.2.perl -e '$x = 0.0; $x += 20.1 for ( 1 .. 43 ); print $x."\n";'
What is it I'm missing ?
Back to
Seekers of Perl Wisdom