[OFBiz] SVN: r7007 - trunk/applications/accounting/config
sichen@svn.ofbiz.org
sichen at svn.ofbiz.org
Thu Mar 16 17:13:31 CST 2006
Author: sichen
Date: 2006-03-16 17:13:28 -0600 (Thu, 16 Mar 2006)
New Revision: 7007
Modified:
trunk/applications/accounting/config/arithmetic.properties
Log:
Use round half even for even more rounding precision. An explanation of this can be found in this cookbook, http://www.opensourcestrategies.com/ofbiz/ofbiz_bigdecimal_cookbook.txt
Modified: trunk/applications/accounting/config/arithmetic.properties
===================================================================
--- trunk/applications/accounting/config/arithmetic.properties 2006-03-16 23:04:31 UTC (rev 7006)
+++ trunk/applications/accounting/config/arithmetic.properties 2006-03-16 23:13:28 UTC (rev 7007)
@@ -4,17 +4,17 @@
# For setting decimal precision and rounding method of operations related to invoices
invoice.decimals = 2
-invoice.rounding = ROUND_HALF_UP
+invoice.rounding = ROUND_HALF_EVEN
# For setting decimal precision and rounding method of operations related to orders,
# such as shopping cart amounts and order amounts
order.decimals = 2
-order.rounding = ROUND_HALF_UP
+order.rounding = ROUND_HALF_EVEN
# For setting decimal precision and rounding method of operations related to customer accounts
# such as Financial Accounts
finaccount.decimals = 2
-finaccount.rounding = ROUND_HALF_UP
+finaccount.rounding = ROUND_HALF_EVEN
# Most companies would want their sales tax calculations ALWAYS to round up (ie, 100.081 becomes 100.09)
# This could be ROUND_CEILING or ROUND_UP. (The difference is that ROUND_CEILING rounds towards positive infinity,
More information about the Svn
mailing list