BigDecimal Java Specification on the Web
For the Sun Java specification on BigDecimals, see http://java.sun.com/j2se/1.4.2/docs/api/java/math/BigDecimal.html.
BigDecimal Enhancements
-
You can specify a BigDecimal literal with the characters DB as in 26.12DB
. -
You can do math operations on BigDecimals, using the standard math operators. See BigDecimal tab Syntax Buttons.
-
When entering a BigDecimal as a literal number, the scale of that BigDecimal is set as the number of digits in the fractional part of the number. For example: in the number in 1.53DB, the scale is 2. The scale is zero if there is no decimal point.
-
When dividing BigDecimals, the scale of both numbers that are divided is added with a minimum of 25 to set the scale of the result value. If the scale is less than 25, then the scale is fixed at 25. If the sum of the two scales is larger than 25, then the scale is fixed at that larger number.