Uses of Class
org.teavm.classlib.java.math.TMathContext
Packages that use TMathContext
-
Uses of TMathContext in org.teavm.classlib.java.math
Fields in org.teavm.classlib.java.math declared as TMathContextModifier and TypeFieldDescriptionstatic TMathContext
TMathContext.DECIMAL128
AMathContext
which corresponds to the IEEE 754r quadruple decimal precision format: 34 digit precision andTRoundingMode.HALF_EVEN
rounding.static TMathContext
TMathContext.DECIMAL32
AMathContext
which corresponds to the IEEE 754r single decimal precision format: 7 digit precision andTRoundingMode.HALF_EVEN
rounding.static TMathContext
TMathContext.DECIMAL64
AMathContext
which corresponds to the IEEE 754r double decimal precision format: 16 digit precision andTRoundingMode.HALF_EVEN
rounding.static TMathContext
TMathContext.UNLIMITED
AMathContext
for unlimited precision withTRoundingMode.HALF_UP
rounding.Methods in org.teavm.classlib.java.math with parameters of type TMathContextModifier and TypeMethodDescriptionTBigDecimal.abs(TMathContext mc)
Returns a newBigDecimal
whose value is the absolute value ofthis
.TBigDecimal.add(TBigDecimal augend, TMathContext mc)
Returns a newBigDecimal
whose value isthis + augend
.TBigDecimal.divide(TBigDecimal divisor, TMathContext mc)
Returns a newBigDecimal
whose value isthis / divisor
.TBigDecimal.divideAndRemainder(TBigDecimal divisor, TMathContext mc)
Returns aBigDecimal
array which contains the integral part ofthis / divisor
at index 0 and the remainderthis % divisor
at index 1.TBigDecimal.divideToIntegralValue(TBigDecimal divisor, TMathContext mc)
Returns a newBigDecimal
whose value is the integral part ofthis / divisor
.TBigDecimal.multiply(TBigDecimal multiplicand, TMathContext mc)
Returns a newBigDecimal
whose value isthis * multiplicand
.TBigDecimal.negate(TMathContext mc)
Returns a newBigDecimal
whose value is the-this
.TBigDecimal.plus(TMathContext mc)
Returns a newBigDecimal
whose value is+this
.TBigDecimal.pow(int n, TMathContext mc)
Returns a newBigDecimal
whose value isthis ^ n
.TBigDecimal.remainder(TBigDecimal divisor, TMathContext mc)
Returns a newBigDecimal
whose value isthis % divisor
.TBigDecimal.round(TMathContext mc)
Returns a newBigDecimal
whose value isthis
, rounded according to the passed contextmc
.TBigDecimal.subtract(TBigDecimal subtrahend, TMathContext mc)
Returns a newBigDecimal
whose value isthis - subtrahend
.Constructors in org.teavm.classlib.java.math with parameters of type TMathContextModifierConstructorDescriptionTBigDecimal(char[] in, int offset, int len, TMathContext mc)
Constructs a newBigDecimal
instance from a string representation given as a character array.TBigDecimal(char[] in, TMathContext mc)
Constructs a newBigDecimal
instance from a string representation given as a character array.TBigDecimal(double val, TMathContext mc)
Constructs a newBigDecimal
instance from the 64bit doubleval
.TBigDecimal(int val, TMathContext mc)
Constructs a newBigDecimal
instance from the given intval
.TBigDecimal(long val, TMathContext mc)
Constructs a newBigDecimal
instance from the given longval
.TBigDecimal(String val, TMathContext mc)
Constructs a newBigDecimal
instance from a string representation.TBigDecimal(TBigInteger unscaledVal, int scale, TMathContext mc)
Constructs a newBigDecimal
instance from a given unscaled valueunscaledVal
and a given scale.TBigDecimal(TBigInteger val, TMathContext mc)
Constructs a newBigDecimal
instance from the given big integerval
.