Package | Description |
---|---|
java.math | |
java.text |
Provides classes and interfaces for handling text, dates, numbers, and messages
in a manner independent of natural languages.
|
Modifier and Type | Method and Description |
---|---|
static RoundingMode |
RoundingMode.valueOf(int rm)
Returns the
RoundingMode object corresponding to a
legacy integer rounding mode constant in BigDecimal . |
static RoundingMode |
RoundingMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoundingMode[] |
RoundingMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
RoundingMode |
DecimalFormat.getRoundingMode()
Gets the
RoundingMode used in this DecimalFormat. |
Modifier and Type | Method and Description |
---|---|
void |
DecimalFormat.setRoundingMode(RoundingMode roundingMode)
Sets the
RoundingMode used in this DecimalFormat. |