kju has asked for the wisdom of the Perl Monks concerning the following question:
Whats 215.88 minus 214.89? For perl the answer is not so obvious:
Is that a bug?kju@teriyaki:~$ perl -e 'print 215.88-214.89' 0.990000000000009
kju@teriyaki:~$ perl -v This is perl, v5.8.4 built for i386-linux-thread-multi
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Strange rounding Error in Perl
by Enlil (Parson) on Nov 21, 2004 at 20:37 UTC | |
Re: Strange rounding Error in Perl
by pg (Canon) on Nov 21, 2004 at 21:52 UTC | |
Re: Strange rounding Error in Perl
by davido (Cardinal) on Nov 22, 2004 at 04:38 UTC | |
by pg (Canon) on Nov 22, 2004 at 17:30 UTC | |
by davido (Cardinal) on Nov 23, 2004 at 04:46 UTC | |
Re: Strange rounding Error in Perl
by TedPride (Priest) on Nov 22, 2004 at 14:50 UTC |
Back to
Seekers of Perl Wisdom