The methods of Java.Math.BigDecimal are listed below. For a list of all members, see the BigDecimal Members list.
See Also: Inherited members from Java.Lang.Number
Abs()Returns a BigDecimal whose value is the absolute value of this. | ||
Abs(MathContext)Returns a BigDecimal whose value is the absolute value of this. | ||
Add(BigDecimal)Returns a new BigDecimal whose value is this + augend. | ||
Add(BigDecimal, MathContext)Returns a new BigDecimal whose value is this + augend. | ||
ByteValueExact()Returns this BigDecimal as a byte value if it has no fractional part and if its value fits to the byte range ([-128. | ||
CompareTo(BigDecimal)Compares this BigDecimal with val. | ||
Divide(BigDecimal)Returns a new BigDecimal whose value is this / divisor. | ||
Divide(BigDecimal, MathContext)Returns a new BigDecimal whose value is this / divisor. | ||
Divide(BigDecimal, RoundingMode)Returns a new BigDecimal whose value is this / divisor. | ||
Divide(BigDecimal, RoundOptions)Returns a new BigDecimal whose value is this / divisor. | ||
Divide(BigDecimal, int, RoundingMode)Returns a new BigDecimal whose value is this / divisor. | ||
Divide(BigDecimal, int, RoundOptions)Returns a new BigDecimal whose value is this / divisor. | ||
DivideAndRemainder(BigDecimal)Returns a BigDecimal array which contains the integral part of this / divisor at index 0 and the remainder this % divisor at index 1. | ||
DivideAndRemainder(BigDecimal, MathContext)Returns a BigDecimal array which contains the integral part of this / divisor at index 0 and the remainder this % divisor at index 1. | ||
DivideToIntegralValue(BigDecimal)Returns a new BigDecimal whose value is the integral part of this / divisor. | ||
DivideToIntegralValue(BigDecimal, MathContext)Returns a new BigDecimal whose value is the integral part of this / divisor. | ||
override | DoubleValue()Returns this BigDecimal as a double value. | |
override | FloatValue()Returns this BigDecimal as a float value. | |
override | IntValue()Returns this BigDecimal as an int value. | |
IntValueExact()Returns this BigDecimal as a int value if it has no fractional part and if its value fits to the int range ([-231. | ||
override | LongValue()Returns this BigDecimal as an long value. | |
LongValueExact()Returns this BigDecimal as a long value if it has no fractional part and if its value fits to the int range ([-263. | ||
Max(BigDecimal)Returns the maximum of this BigDecimal and val. | ||
Min(BigDecimal)Returns the minimum of this BigDecimal and val. | ||
MovePointLeft(int)Returns a new BigDecimal instance where the decimal point has been moved n places to the left. | ||
MovePointRight(int)Returns a new BigDecimal instance where the decimal point has been moved n places to the right. | ||
Multiply(BigDecimal)Returns a new BigDecimal whose value is this * multiplicand. | ||
Multiply(BigDecimal, MathContext)Returns a new BigDecimal whose value is this * multiplicand. | ||
Negate()Returns a new BigDecimal whose value is the -this. | ||
Negate(MathContext)Returns a new BigDecimal whose value is the -this. | ||
Plus()Returns a new BigDecimal whose value is +this. | ||
Plus(MathContext)Returns a new BigDecimal whose value is +this. | ||
Pow(int)Returns a new BigDecimal whose value is thisn. | ||
Pow(int, MathContext)Returns a new BigDecimal whose value is thisn. | ||
Precision()Returns the precision of this BigDecimal. | ||
Remainder(BigDecimal)Returns a new BigDecimal whose value is this % divisor. | ||
Remainder(BigDecimal, MathContext)Returns a new BigDecimal whose value is this % divisor. | ||
Round(MathContext)Returns a new BigDecimal whose value is this, rounded according to the passed context mc. | ||
Scale()Returns the scale of this BigDecimal. | ||
ScaleByPowerOfTen(int)Returns a new BigDecimal whose value is this * 10n. | ||
SetScale(int)Returns a new BigDecimal instance with the specified scale. | ||
SetScale(int, RoundingMode)Returns a new BigDecimal instance with the specified scale. | ||
SetScale(int, RoundOptions)Returns a new BigDecimal instance with the specified scale. | ||
ShortValueExact()Returns this BigDecimal as a short value if it has no fractional part and if its value fits to the short range ([-215. | ||
Signum()Returns the sign of this BigDecimal. | ||
StripTrailingZeros()Returns a new BigDecimal instance with the same value as this but with a unscaled value where the trailing zeros have been removed. | ||
Subtract(BigDecimal)Returns a new BigDecimal whose value is this - subtrahend. | ||
Subtract(BigDecimal, MathContext)Returns a new BigDecimal whose value is this - subtrahend. | ||
ToBigInteger()Returns this BigDecimal as a big integer instance. | ||
ToBigIntegerExact()Returns this BigDecimal as a big integer instance if it has no fractional part. | ||
ToEngineeringString()Returns a string representation of this BigDecimal. | ||
ToPlainString()Returns a string representation of this BigDecimal. | ||
Ulp()Returns the unit in the last place (ULP) of this BigDecimal instance. | ||
UnscaledValue()Returns the unscaled value (mantissa) of this BigDecimal instance as a BigInteger. | ||
static | ValueOf(double)Returns a new BigDecimal instance whose value is equal to val. | |
static | ValueOf(long)Returns a new BigDecimal instance whose value is equal to unscaledVal. | |
static | ValueOf(long, int)Returns a new BigDecimal instance whose value is equal to unscaledVal * 10-scale). |