The java.math PackageThe java.math package contains two classes, BigInteger and BigDecimal , which allow arbitrary precision integer and decimal arithmetic. In addition to arithmetic methods , the BigInteger class provides functionality for such things as modular arithmetic, prime generation, and bit manipulation. The BigDecimal class provides arbitrary-precision signed decimal numbers for currency calculations and a customizable rounding capability. The examples in this book won't make use of either of the java.math classes. For more information on them, consult the Sun Java docs. |