Stay organized with collections
Save and categorize content based on your preferences.
java.math
Classes
BigDecimal |
Immutable, arbitrary-precision signed decimal numbers.
|
BigInteger |
Immutable arbitrary-precision integers.
|
MathContext |
Immutable objects which encapsulate the context settings which
describe certain rules for numerical operators, such as those
implemented by the BigDecimal class.
|
Enums
RoundingMode |
Specifies a rounding policy for numerical operations capable
of discarding precision.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# java.math\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\njava.math\n=========\n\nClasses\n-------\n\n|-------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BigDecimal](/reference/java/math/BigDecimal) | Immutable, arbitrary-precision signed decimal numbers. |\n| [BigInteger](/reference/java/math/BigInteger) | Immutable arbitrary-precision integers. |\n| [MathContext](/reference/java/math/MathContext) | Immutable objects which encapsulate the context settings which describe certain rules for numerical operators, such as those implemented by the [BigDecimal](/reference/java/math/BigDecimal) class. |\n\nEnums\n-----\n\n|---------------------------------------------------|-----------------------------------------------------------------------------------------|\n| [RoundingMode](/reference/java/math/RoundingMode) | Specifies a *rounding policy* for numerical operations capable of discarding precision. |\n\n-\n\n Classes\n -------\n\n - [BigDecimal](/reference/java/math/BigDecimal)\n - [BigInteger](/reference/java/math/BigInteger)\n - [MathContext](/reference/java/math/MathContext)\n-\n\n Enums\n -----\n\n - [RoundingMode](/reference/java/math/RoundingMode)"]]