Name
Package java.math
Synopsis
The
java.math
package contains the
BigInteger
class for arbitrary-precision integer
arithmetic, which is useful for cryptography. It also contains the
BigDecimal
class for arbitrary precision decimal
floating-point arithmetic, which is useful for financial applications
that need to be careful about rounding errors. The
BigDecimal
class is greatly enhanced in Java 5.0
and is accompanied by the new types MathContext
and RoundingMode
.
Enumerated Types
public enum RoundingMode;
Classes
public class BigDecimal extends Number implements Comparable<BigDecimal>; public class BigInteger extends Number implements Comparable<BigInteger>; public final class MathContext implements Serializable;
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.