diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-04-27 23:59:40 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-04-27 23:59:40 +0000 |
commit | 2526c17b6e3db7360ed1a52e9b20a241e1d0970f (patch) | |
tree | ab2bbb24247d8c2b26fcc3ea66304033a92e2799 /LedgerSMB | |
parent | b5acdeda00c8896793451d2d5323f0abfcddc19c (diff) |
Updating comments about precision and rounding
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1118 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rw-r--r-- | LedgerSMB/Form.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index 47f117f7..bb8ec4cb 100644 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -572,7 +572,9 @@ sub round_amount { if $places < 0; $amount->precision(undef); #we are assuming whole cents so do not round - #immediately on arithmatic + #immediately on arithmatic. This is necessary + #because Math::BigFloat is arithmatically + #correct wrt accuracy and precision. return $amount; } |