From 2526c17b6e3db7360ed1a52e9b20a241e1d0970f Mon Sep 17 00:00:00 2001
From: einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>
Date: Fri, 27 Apr 2007 23:59:40 +0000
Subject: 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
---
 LedgerSMB/Form.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'LedgerSMB')

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;
 }
-- 
cgit v1.2.3