[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1118] trunk/LedgerSMB/Form.pm



Revision: 1118
          http://svn.sourceforge.net/ledger-smb/?rev=1118&view=rev
Author:   einhverfr
Date:     2007-04-27 16:59:40 -0700 (Fri, 27 Apr 2007)

Log Message:
-----------
Updating comments about precision and rounding

Modified Paths:
--------------
    trunk/LedgerSMB/Form.pm

Modified: trunk/LedgerSMB/Form.pm
===================================================================
--- trunk/LedgerSMB/Form.pm	2007-04-27 23:58:16 UTC (rev 1117)
+++ trunk/LedgerSMB/Form.pm	2007-04-27 23:59:40 UTC (rev 1118)
@@ -572,7 +572,9 @@
       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;
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.