XP is just a number | |
PerlMonks |
Re: Strange rounding Error in Perlby pg (Canon) |
on Nov 21, 2004 at 21:52 UTC ( [id://409436]=note: print w/replies, xml ) | Need Help?? |
Other than those discussion people had before, if precision is so important, for example, this is a finance, or money related program, use bignum.
This gives you 0.99. But you have to fully understand the performance implication by doing this.
In Section
Seekers of Perl Wisdom
|
|