Overview Package Class Use Source Tree Index Deprecated About
GNU Classpath (0.95)
Frames | No Frames

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.
BigDecimal.BigDecimal(char[] in, MathContext mc)
Constructs a BigDecimal from the char array and rounding according to the MathContext.
BigDecimal.BigDecimal(double num, MathContext mc)
Constructs a BigDecimal in the same way as BigDecimal(double) and then rounds according to the MathContext.
BigDecimal.BigDecimal(int val, MathContext mc)
Constructs a BigDecimal using the BigDecimal(int) constructor and then rounds according to the MathContext.
BigDecimal.BigDecimal(String val, MathContext mc)
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.
BigDecimal.BigDecimal(BigInteger num, int scale, MathContext mc)
Constructs a BigDecimal using the BigDecimal(BigInteger, int) constructor and then rounds according to the MathContext.
BigDecimal.BigDecimal(BigInteger num, MathContext mc)
Constructs a BigDecimal whose value is given by num rounded according to mc.
BigDecimal.BigDecimal(long val, MathContext 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
MathContext.DECIMAL128
A MathContext for the IEEE 754R Decimal128 format - 34 digit preicision and HALF_EVEN rounding.
MathContext
MathContext.DECIMAL32
A MathContext for the IEEE 754R Decimal32 format - 7 digit preicision and HALF_EVEN rounding.
MathContext
MathContext.DECIMAL64
A MathContext for the IEEE 754R Decimal64 format - 16 digit preicision and HALF_EVEN rounding.
MathContext
MathContext.UNLIMITED
A MathContext for unlimited precision arithmetic *

Methods with parameter type java.math.MathContext

BigDecimal
BigDecimal.abs(MathContext mc)
Returns a BigDecimal whose value is the absolute value of this BigDecimal with rounding according to the given MathContext.
BigDecimal
BigDecimal.add(BigDecimal val, MathContext mc)
Returns a BigDecimal whose value is found first by calling the method add(val) and then by rounding according to the MathContext mc.
BigDecimal
BigDecimal.multiply(BigDecimal val, MathContext mc)
Returns a BigDecimal whose value is (this x val) before it is rounded according to the MathContext mc.
BigDecimal
BigDecimal.negate(MathContext mc)
Returns a BigDecimal whose value is found first by negating this via the negate() method, then by rounding according to the MathContext mc.
BigDecimal
BigDecimal.plus(MathContext mc)
Returns a BigDecimal whose value is found by rounding this according to the MathContext.
BigDecimal
BigDecimal.pow(int n, MathContext mc)
Returns a BigDecimal whose value is determined by first calling pow(n) and then by rounding according to the MathContext mc.
BigDecimal
BigDecimal.round(MathContext mc)
Returns a BigDecimal which is this BigDecimal rounded according to the MathContext rounding settings.
BigDecimal
BigDecimal.subtract(BigDecimal val, MathContext mc)
Returns a BigDecimal whose value is found first by calling the method subtract(val) and then by rounding according to the MathContext mc.
Overview Package Class Use Source Tree Index Deprecated About
GNU Classpath (0.95)

AltStyle によって変換されたページ (->オリジナル) /