summaryrefslogtreecommitdiff
path: root/LedgerSMB/Form.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/Form.pm')
-rw-r--r--LedgerSMB/Form.pm4
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;
}