Example usage for Java java.math MathContext fields, constructors, methods, implement or subclass
The text is from its open source code.
MathContext | UNLIMITED A MathContext object whose settings have the values required for unlimited precision arithmetic. |
MathContext | DECIMAL32 A MathContext object with a precision setting matching the IEEE 754R Decimal32 format, 7 digits, and a rounding mode of RoundingMode#HALF_EVEN HALF_EVEN , the IEEE 754R default. |
MathContext | DECIMAL64 A MathContext object with a precision setting matching the IEEE 754R Decimal64 format, 16 digits, and a rounding mode of RoundingMode#HALF_EVEN HALF_EVEN , the IEEE 754R default. |
MathContext | DECIMAL128 A MathContext object with a precision setting matching the IEEE 754R Decimal128 format, 34 digits, and a rounding mode of RoundingMode#HALF_EVEN HALF_EVEN , the IEEE 754R default. |
MathContext(int setPrecision) Constructs a new MathContext with the specified precision and the RoundingMode#HALF_UP HALF_UP rounding mode. | |
MathContext(String val) Constructs a new MathContext from a string. | |
MathContext(int setPrecision, RoundingMode setRoundingMode) Constructs a new MathContext with a specified precision and rounding mode. |
int | getPrecision() Returns the precision setting. |
RoundingMode | getRoundingMode() Returns the roundingMode setting. |