in reply to Strange rounding Error in Perl
Other than those discussion people had before, if precision is so important, for example, this is a finance, or money related program, use bignum.
use bignum; print 215.88-214.89;
This gives you 0.99. But you have to fully understand the performance implication by doing this.
|
---|