Decimal arithmetic
Copyright (c) IBM Corporation, 2000. All rights reserved. © | 11 Jan 2000 |
[previous | contents | next] |
A BigDecimal object whose value is exactly 0.
A BigDecimal object whose value is exactly 1.
A BigDecimal object whose value is exactly 10.
In addition, the constant fields describing rounding modes (those whose name starts with ROUND_) from the Java 1.1 BigDecimal class are preserved. These have the same names and values as the corresponding fields in the MathContext class.[1]
[1] | These fields are preserved to maintain upwards compatibility. The MathContext class is their logical home -- the constants in that class should be used in preference to those in the BigDecimal class. |