Decimal arithmetic
Copyright (c) IBM Corporation, 2000. All rights reserved. ©
11 Jan 2000
[previous | contents | next]

Fields

The following constant (static and final) fields are provided by the BigDecimal class.

ZERO

A BigDecimal object whose value is exactly 0.

ONE

A BigDecimal object whose value is exactly 1.

TEN

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] 


Footnotes:
[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.

[previous | contents | next]