Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 347
نمايش فراداده

Package java.math

Java 1.1

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;