Uses of Class java.math.MathContext

Uses in package java.math

Constructors with parameter type java.math.MathContext

BigDecimal.BigDecimal(char[] in, int offset, int len, MathContext mc)
Constructs a BigDecimal from the char subarray and rounding according to the MathContext.
Constructs a BigDecimal from the char array and rounding according to the MathContext.
Constructs a BigDecimal in the same way as BigDecimal(double) and then rounds according to the MathContext.
Constructs a BigDecimal using the BigDecimal(int) constructor and then rounds according to the MathContext.
Constructs a BigDecimal from the String val according to the same rules as the BigDecimal(String) constructor and then rounds according to the MathContext mc.
Constructs a BigDecimal using the BigDecimal(BigInteger, int) constructor and then rounds according to the MathContext.
Constructs a BigDecimal whose value is given by num rounded according to mc.
Constructs a BigDecimal from the long in the same way as BigDecimal(long) and then rounds according to the MathContext.

Fields of type java.math.MathContext

MathContext
A MathContext for the IEEE 754R Decimal128 format - 34 digit preicision and HALF_EVEN rounding.
MathContext
A MathContext for the IEEE 754R Decimal32 format - 7 digit preicision and HALF_EVEN rounding.
MathContext
A MathContext for the IEEE 754R Decimal64 format - 16 digit preicision and HALF_EVEN rounding.
MathContext
A MathContext for unlimited precision arithmetic *

Methods with parameter type java.math.MathContext

BigDecimal
Returns a BigDecimal whose value is the absolute value of this BigDecimal with rounding according to the given MathContext.
BigDecimal
Returns a BigDecimal whose value is found first by calling the method add(val) and then by rounding according to the MathContext mc.
BigDecimal
Returns a BigDecimal whose value is (this x val) before it is rounded according to the MathContext mc.
BigDecimal
Returns a BigDecimal whose value is found first by negating this via the negate() method, then by rounding according to the MathContext mc.
BigDecimal
Returns a BigDecimal whose value is found by rounding this according to the MathContext.
BigDecimal
Returns a BigDecimal whose value is determined by first calling pow(n) and then by rounding according to the MathContext mc.
BigDecimal
Returns a BigDecimal which is this BigDecimal rounded according to the MathContext rounding settings.
BigDecimal
Returns a BigDecimal whose value is found first by calling the method subtract(val) and then by rounding according to the MathContext mc.