You could investigate to see if there is a binary-coded decimal module for Perl (although during a rather cursory search on CPAN, I did not find one). HIstorically, financial programming in COBOL was done with BCD (also known as packed decimal) as it maps better to decimal currency than the computers' normal binary arithmetic.
emc
Insisting on perfect safety is for people who don't have the balls to live in the real world.
In reply to Re: Decimal Arithmetic
by swampyankee
in thread Decimal Arithmetic
by gcoates
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |