Package | Description |
---|---|
org.teavm.classlib.java.math | |
org.teavm.classlib.java.text |
Modifier and Type | Method and Description |
---|---|
TRoundingMode |
TMathContext.getRoundingMode()
Returns the rounding mode.
|
static TRoundingMode |
TRoundingMode.valueOf(int mode)
Converts rounding mode constants from class
BigDecimal into
RoundingMode values. |
static TRoundingMode |
TRoundingMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TRoundingMode[] |
TRoundingMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
TBigDecimal |
TBigDecimal.divide(TBigDecimal divisor,
int scale,
TRoundingMode roundingMode)
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.setScale(int newScale,
TRoundingMode roundingMode)
Returns a new
BigDecimal instance with the specified scale. |
Constructor and Description |
---|
TMathContext(int precision,
TRoundingMode roundingMode)
Constructs a new
MathContext with the specified precision and
with the specified rounding mode. |
Modifier and Type | Method and Description |
---|---|
TRoundingMode |
TNumberFormat.getRoundingMode() |
Modifier and Type | Method and Description |
---|---|
void |
TNumberFormat.setRoundingMode(TRoundingMode roundingMode) |
Copyright © 2019. All rights reserved.