svn commit: r707790 - in /ofbiz/branches/typecheckcleanup200810/framework/minilang: dtd/simple-methods.xsd src/org/ofbiz/minilang/method/otherops/Calculate.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r707790 - in /ofbiz/branches/typecheckcleanup200810/framework/minilang: dtd/simple-methods.xsd src/org/ofbiz/minilang/method/otherops/Calculate.java

jonesde
Author: jonesde
Date: Fri Oct 24 16:35:53 2008
New Revision: 707790

URL: http://svn.apache.org/viewvc?rev=707790&view=rev
Log:
Changed default for calculate from Double to BigDecimal

Modified:
    ofbiz/branches/typecheckcleanup200810/framework/minilang/dtd/simple-methods.xsd
    ofbiz/branches/typecheckcleanup200810/framework/minilang/src/org/ofbiz/minilang/method/otherops/Calculate.java

Modified: ofbiz/branches/typecheckcleanup200810/framework/minilang/dtd/simple-methods.xsd
URL: http://svn.apache.org/viewvc/ofbiz/branches/typecheckcleanup200810/framework/minilang/dtd/simple-methods.xsd?rev=707790&r1=707789&r2=707790&view=diff
==============================================================================
--- ofbiz/branches/typecheckcleanup200810/framework/minilang/dtd/simple-methods.xsd (original)
+++ ofbiz/branches/typecheckcleanup200810/framework/minilang/dtd/simple-methods.xsd Fri Oct 24 16:35:53 2008
@@ -4794,7 +4794,7 @@
         <xs:attribute type="xs:string" name="field-name" use="required">
             <xs:annotation><xs:documentation>The name (key) of the map (or env if map-name is empty) field to use.</xs:documentation></xs:annotation>
         </xs:attribute>
-        <xs:attribute name="type" default="Double">
+        <xs:attribute name="type" default="BigDecimal">
             <xs:simpleType>
                 <xs:restriction base="xs:token">
                     <xs:enumeration value="String"/>

Modified: ofbiz/branches/typecheckcleanup200810/framework/minilang/src/org/ofbiz/minilang/method/otherops/Calculate.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/typecheckcleanup200810/framework/minilang/src/org/ofbiz/minilang/method/otherops/Calculate.java?rev=707790&r1=707789&r2=707790&view=diff
==============================================================================
--- ofbiz/branches/typecheckcleanup200810/framework/minilang/src/org/ofbiz/minilang/method/otherops/Calculate.java (original)
+++ ofbiz/branches/typecheckcleanup200810/framework/minilang/src/org/ofbiz/minilang/method/otherops/Calculate.java Fri Oct 24 16:35:53 2008
@@ -113,7 +113,7 @@
         } else if ("BigDecimal".equals(typeString)) {
             type = Calculate.TYPE_BIG_DECIMAL;
         } else {
-            type = Calculate.TYPE_DOUBLE;
+            type = Calculate.TYPE_BIG_DECIMAL;
         }
         
         String roundingModeString = methodContext.expandString(this.roundingModeString);