From: "Shawn H. Corey" <shawnhco...@gmail.com>
Either the programs (not the languages) are doing their calculations in cents, not dollars or they are rounding off at a higher level than Perl. You just think they are not making errors because they're not telling you what they're really doing.
They give a different result which is a correct one so their higher level way is prefered.
If you want more accurate results, consider using bignum or bigrat (see `perldoc bignum` and `perldoc bigrat`).
That's what I needed! I found that I can use Math::BigFloat or sprintf(), but it is ugly to manually create an object for every float used, or round each number, but it seems that bignum it is the way to go, and it offers more features.
Thank you. Octavian -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/