java.math Classes
Home ] Up ] Overview ] Class java.lang.Object ] java.lang Classes ] java.util Classes ] [ java.math Classes ]

 

 

The java.math package contains classes for arbitrary-precision integer and floating-point arithmetic.

BigDecimal

Represents a floating-point number of arbitrary size and precision.

Its methods duplicate the functionality of the standard Java arithmetic operators.

BigDecimal is a subclass of java.lang.Number.

BigDecimal values can be useful for applications (such as financial applications) where rounding errors are problematic.

BigInteger

Represents integers that can be arbitrarily large.

It defines methods which duplicate the functionality of the standard Java arithmetic and bit-manipulation operators.

BigInteger is a subclass of java.lang.Number.

Arbitrary-length integers are used in cryptography, and BigInteger contains many methods designed for cryptographic applications.

 

This page was last modified on 02 October, 2007