in reply to Re^2: Decimal Arithmetic
in thread Decimal Arithmetic

5 decimal places precision

It certainly seems reasonable to me, if you are calcuating to pennies. To be on the safe side, you could always round up/down (to the nearest penny) in favor of the customer. You could absorb the penny/per cost and raise your rate by a penny :-). If you need more accuracy, look at xs outputs faster than perl can keep up and use MPFR to as many decimal places of precision you want.


I'm not really a human, but I play one on earth. Cogito ergo sum a bum