Perl-Sensitive Sunglasses | |
PerlMonks |
Re: COBOL to PERLby pg (Canon) |
on Sep 25, 2005 at 03:23 UTC ( [id://494846]=note: print w/replies, xml ) | Need Help?? |
When you translate COBOL to Perl or any other c family languages, you need to be careful with the math. c family languages are not designed to take care of the precision to great details, and rounding could also be an issue. To resolve this kind of issues, one way is to use bignum pragmas in certain modules. For example:
Without bignum it gives you 0.990000000000009, but with bugnum it gives you 0.99. In certain aplication areas, this makes a big difference.
In Section
Seekers of Perl Wisdom
|
|