Package | Description |
---|---|
org.teavm.classlib.java.math |
Modifier and Type | Field and Description |
---|---|
static TBigDecimal |
TBigDecimal.ONE
The constant one as a
BigDecimal . |
static TBigDecimal |
TBigDecimal.TEN
The constant ten as a
BigDecimal . |
static TBigDecimal |
TBigDecimal.ZERO
The constant zero as a
BigDecimal . |
Modifier and Type | Method and Description |
---|---|
TBigDecimal |
TBigDecimal.abs()
Returns a new
BigDecimal whose value is the absolute value of
this . |
TBigDecimal |
TBigDecimal.abs(TMathContext mc)
Returns a new
BigDecimal whose value is the absolute value of
this . |
TBigDecimal |
TBigDecimal.add(TBigDecimal augend)
Returns a new
BigDecimal whose value is this + augend . |
TBigDecimal |
TBigDecimal.add(TBigDecimal augend,
TMathContext mc)
Returns a new
BigDecimal whose value is this + augend . |
TBigDecimal |
TBigDecimal.divide(TBigDecimal divisor)
Returns a new
BigDecimal whose value is this / divisor . |
TBigDecimal |
TBigDecimal.divide(TBigDecimal divisor,
int roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
TBigDecimal |
TBigDecimal.divide(TBigDecimal divisor,
int scale,
int roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
TBigDecimal |
TBigDecimal.divide(TBigDecimal divisor,
int scale,
TRoundingMode roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
TBigDecimal |
TBigDecimal.divide(TBigDecimal divisor,
TMathContext mc)
Returns a new
BigDecimal whose value is this / divisor . |
TBigDecimal |
TBigDecimal.divide(TBigDecimal divisor,
TRoundingMode roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
TBigDecimal[] |
TBigDecimal.divideAndRemainder(TBigDecimal divisor)
Returns a
BigDecimal array which contains the integral part of
this / divisor at index 0 and the remainder this %
divisor at index 1. |
TBigDecimal[] |
TBigDecimal.divideAndRemainder(TBigDecimal divisor,
TMathContext mc)
Returns a
BigDecimal array which contains the integral part of
this / divisor at index 0 and the remainder this %
divisor at index 1. |
TBigDecimal |
TBigDecimal.divideToIntegralValue(TBigDecimal divisor)
Returns a new
BigDecimal whose value is the integral part of
this / divisor . |
TBigDecimal |
TBigDecimal.divideToIntegralValue(TBigDecimal divisor,
TMathContext mc)
Returns a new
BigDecimal whose value is the integral part of
this / divisor . |
TBigDecimal |
TBigDecimal.max(TBigDecimal val)
Returns the maximum of this
BigDecimal and val . |
TBigDecimal |
TBigDecimal.min(TBigDecimal val)
Returns the minimum of this
BigDecimal and val . |
TBigDecimal |
TBigDecimal.movePointLeft(int n)
Returns a new
BigDecimal instance where the decimal point has
been moved n places to the left. |
TBigDecimal |
TBigDecimal.movePointRight(int n)
Returns a new
BigDecimal instance where the decimal point has
been moved n places to the right. |
TBigDecimal |
TBigDecimal.multiply(TBigDecimal multiplicand)
Returns a new
BigDecimal whose value is this *
multiplicand . |
TBigDecimal |
TBigDecimal.multiply(TBigDecimal multiplicand,
TMathContext mc)
Returns a new
BigDecimal whose value is this *
multiplicand . |
TBigDecimal |
TBigDecimal.negate()
Returns a new
BigDecimal whose value is the -this . |
TBigDecimal |
TBigDecimal.negate(TMathContext mc)
Returns a new
BigDecimal whose value is the -this . |
TBigDecimal |
TBigDecimal.plus()
Returns a new
BigDecimal whose value is +this . |
TBigDecimal |
TBigDecimal.plus(TMathContext mc)
Returns a new
BigDecimal whose value is +this . |
TBigDecimal |
TBigDecimal.pow(int n)
Returns a new
BigDecimal whose value is this ^ n . |
TBigDecimal |
TBigDecimal.pow(int n,
TMathContext mc)
Returns a new
BigDecimal whose value is this ^ n . |
TBigDecimal |
TBigDecimal.remainder(TBigDecimal divisor)
Returns a new
BigDecimal whose value is this % divisor . |
TBigDecimal |
TBigDecimal.remainder(TBigDecimal divisor,
TMathContext mc)
Returns a new
BigDecimal whose value is this % divisor . |
TBigDecimal |
TBigDecimal.round(TMathContext mc)
Returns a new
BigDecimal whose value is this , rounded
according to the passed context mc . |
TBigDecimal |
TBigDecimal.scaleByPowerOfTen(int n)
Returns a new
BigDecimal whose value is this 10^n . |
TBigDecimal |
TBigDecimal.setScale(int newScale)
Returns a new
BigDecimal instance with the specified scale. |
TBigDecimal |
TBigDecimal.setScale(int newScale,
int roundingMode)
Returns a new
BigDecimal instance with the specified scale. |
TBigDecimal |
TBigDecimal.setScale(int newScale,
TRoundingMode roundingMode)
Returns a new
BigDecimal instance with the specified scale. |
TBigDecimal |
TBigDecimal.stripTrailingZeros()
Returns a new
BigDecimal instance with the same value as this but with a unscaled value where the trailing zeros have been
removed. |
TBigDecimal |
TBigDecimal.subtract(TBigDecimal subtrahend)
Returns a new
BigDecimal whose value is this - subtrahend . |
TBigDecimal |
TBigDecimal.subtract(TBigDecimal subtrahend,
TMathContext mc)
Returns a new
BigDecimal whose value is this - subtrahend . |
TBigDecimal |
TBigDecimal.ulp()
Returns the unit in the last place (ULP) of this
BigDecimal
instance. |
static TBigDecimal |
TBigDecimal.valueOf(double val)
Returns a new
BigDecimal instance whose value is equal to val . |
static TBigDecimal |
TBigDecimal.valueOf(long unscaledVal)
Returns a new
BigDecimal instance whose value is equal to unscaledVal . |
static TBigDecimal |
TBigDecimal.valueOf(long unscaledVal,
int scale)
Returns a new
BigDecimal instance whose value is equal to unscaledVal 10^(-scale ). |
Modifier and Type | Method and Description |
---|---|
TBigDecimal |
TBigDecimal.add(TBigDecimal augend)
Returns a new
BigDecimal whose value is this + augend . |
TBigDecimal |
TBigDecimal.add(TBigDecimal augend,
TMathContext mc)
Returns a new
BigDecimal whose value is this + augend . |
int |
TBigDecimal.compareTo(TBigDecimal val)
Compares this
BigDecimal with val . |
TBigDecimal |
TBigDecimal.divide(TBigDecimal divisor)
Returns a new
BigDecimal whose value is this / divisor . |
TBigDecimal |
TBigDecimal.divide(TBigDecimal divisor,
int roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
TBigDecimal |
TBigDecimal.divide(TBigDecimal divisor,
int scale,
int roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
TBigDecimal |
TBigDecimal.divide(TBigDecimal divisor,
int scale,
TRoundingMode roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
TBigDecimal |
TBigDecimal.divide(TBigDecimal divisor,
TMathContext mc)
Returns a new
BigDecimal whose value is this / divisor . |
TBigDecimal |
TBigDecimal.divide(TBigDecimal divisor,
TRoundingMode roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
TBigDecimal[] |
TBigDecimal.divideAndRemainder(TBigDecimal divisor)
Returns a
BigDecimal array which contains the integral part of
this / divisor at index 0 and the remainder this %
divisor at index 1. |
TBigDecimal[] |
TBigDecimal.divideAndRemainder(TBigDecimal divisor,
TMathContext mc)
Returns a
BigDecimal array which contains the integral part of
this / divisor at index 0 and the remainder this %
divisor at index 1. |
TBigDecimal |
TBigDecimal.divideToIntegralValue(TBigDecimal divisor)
Returns a new
BigDecimal whose value is the integral part of
this / divisor . |
TBigDecimal |
TBigDecimal.divideToIntegralValue(TBigDecimal divisor,
TMathContext mc)
Returns a new
BigDecimal whose value is the integral part of
this / divisor . |
TBigDecimal |
TBigDecimal.max(TBigDecimal val)
Returns the maximum of this
BigDecimal and val . |
TBigDecimal |
TBigDecimal.min(TBigDecimal val)
Returns the minimum of this
BigDecimal and val . |
TBigDecimal |
TBigDecimal.multiply(TBigDecimal multiplicand)
Returns a new
BigDecimal whose value is this *
multiplicand . |
TBigDecimal |
TBigDecimal.multiply(TBigDecimal multiplicand,
TMathContext mc)
Returns a new
BigDecimal whose value is this *
multiplicand . |
TBigDecimal |
TBigDecimal.remainder(TBigDecimal divisor)
Returns a new
BigDecimal whose value is this % divisor . |
TBigDecimal |
TBigDecimal.remainder(TBigDecimal divisor,
TMathContext mc)
Returns a new
BigDecimal whose value is this % divisor . |
TBigDecimal |
TBigDecimal.subtract(TBigDecimal subtrahend)
Returns a new
BigDecimal whose value is this - subtrahend . |
TBigDecimal |
TBigDecimal.subtract(TBigDecimal subtrahend,
TMathContext mc)
Returns a new
BigDecimal whose value is this - subtrahend . |
Copyright © 2019. All rights reserved.