| Package | Description |
|---|---|
| com.ibm.icu.math | |
| com.ibm.icu.text |
| Modifier and Type | Field and Description |
|---|---|
static MathContext |
MathContext.DEFAULT
A
MathContext object initialized to the default
settings for general-purpose arithmetic. |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
BigDecimal.abs(MathContext set)
Returns a
BigDecimal whose value is the absolute value of this BigDecimal. |
BigDecimal |
BigDecimal.add(BigDecimal rhs,
MathContext set)
Returns a
BigDecimal whose value is this+rhs. |
int |
BigDecimal.compareTo(BigDecimal rhs,
MathContext set)
Compares this
BigDecimal to another. |
BigDecimal |
BigDecimal.divide(BigDecimal rhs,
MathContext set)
Returns a
BigDecimal whose value is this/rhs. |
BigDecimal |
BigDecimal.divideInteger(BigDecimal rhs,
MathContext set)
Returns a
BigDecimal whose value is the integer part of this/rhs. |
BigDecimal |
BigDecimal.max(BigDecimal rhs,
MathContext set)
Returns a
BigDecimal whose value is the maximum of this and rhs. |
BigDecimal |
BigDecimal.min(BigDecimal rhs,
MathContext set)
Returns a
BigDecimal whose value is the minimum of this and rhs. |
BigDecimal |
BigDecimal.multiply(BigDecimal rhs,
MathContext set)
Returns a
BigDecimal whose value is this*rhs. |
BigDecimal |
BigDecimal.negate(MathContext set)
Returns a
BigDecimal whose value is -this. |
BigDecimal |
BigDecimal.plus(MathContext set)
Returns a
BigDecimal whose value is +this. |
BigDecimal |
BigDecimal.pow(BigDecimal rhs,
MathContext set)
Returns a
BigDecimal whose value is this**rhs. |
BigDecimal |
BigDecimal.remainder(BigDecimal rhs,
MathContext set)
Returns a
BigDecimal whose value is the remainder of this/rhs. |
BigDecimal |
BigDecimal.subtract(BigDecimal rhs,
MathContext set)
Returns a
BigDecimal whose value is this-rhs. |
| Modifier and Type | Method and Description |
|---|---|
MathContext |
DecimalFormat.getMathContextICU()
[icu] Returns the
MathContext being used to round numbers. |
| Modifier and Type | Method and Description |
|---|---|
void |
DecimalFormat.setMathContextICU(MathContext mathContextICU)
[icu] Rounding and Digit Limits: Overload of
DecimalFormat.setMathContext(java.math.MathContext) for
MathContext. |
Copyright © 2016 Unicode, Inc. and others.