Click to enter _ more _java FAQ-base Class Library
1, Java.math package has what function
The Java.math package provides a mathematical class in Java. Includes basic floating-point libraries, complex operations, and arbitrary-precision data operations. Main classes such as:
?
The classes in math are described below:
arbitrary length shaping
BigInteger, the arbitrary length of the non-variable shaping. Because the base type has a limited length of shaping, Java provides arbitrary-length, arbitrarily-accurate shaping. Provides a method of operation. Inherit from number.
Mutablebiginteger, variable BigInteger.
Signedmutablebiginteger, signed variable BigInteger.
arbitrary precision Values
BigDecimal, immutable, arbitrary-precision signed values. Consists of an integer non-scale value of arbitrary precision and a 32-bit integer scale (scales). Provides a method of operation. Inherit from number.
byte filtering
Bitsieve, a simple filter for finding prime numbers.
Context
Mathcontext, mathematical operations context, describes some rules for numeric operators.
Roundingmode, the enumeration of rounding algorithms.
Java FAQ _09 Basic Class Library (003) _java.math Package What is the function