SPUG: Working with currency
Michael R. Wolf
MichaelRWolf at att.net
Thu Apr 2 20:19:36 PDT 2009
On Apr 2, 2009, at 11:01 PM, Adam Monsen wrote:
> Be sure to get *very* specific requirements on rounding, especially
> when dealing with multiple currencies. See:
> http://www.xencraft.com/resources/multi-currency.html#rounding
The Math::BigInt module specifies 7 rounding modes: trunc, even, odd,
+inf, -inf, zero, common.
http://search.cpan.org/~tels/Math-BigInt-1.89/lib/Math/BigInt.pm#Rounding_mode_R
--
Michael R. Wolf
All mammals learn by playing!
MichaelRWolf at att.net
More information about the spug-list
mailing list