Java FAQ _09 Basic Class Library (003) _java.math Package What is the function

Source: Internet
Author: User

Click to enter _ more _java thousand ask

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:

  1. 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.

  2. 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.

  3. byte filtering
    Bitsieve, a simple filter for finding prime numbers.

  4. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.