| Enum Constant and Description |
|---|
CEILING |
DOWN |
FLOOR |
HALF_DOWN |
HALF_EVEN |
HALF_UP |
UNNECESSARY |
UP |
| Modifier and Type | Method and Description |
|---|---|
int |
getBigDecimalRound() |
java.math.RoundingMode |
getRoundingMode() |
static Rounding |
getRoundingMode(java.lang.String roundingMode) |
static Rounding |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Rounding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rounding CEILING
public static final Rounding DOWN
public static final Rounding FLOOR
public static final Rounding HALF_DOWN
public static final Rounding HALF_EVEN
public static final Rounding HALF_UP
public static final Rounding UNNECESSARY
public static final Rounding UP
public static Rounding[] values()
for (Rounding c : Rounding.values()) System.out.println(c);
public static Rounding valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getBigDecimalRound()
public java.math.RoundingMode getRoundingMode()
public static Rounding getRoundingMode(java.lang.String roundingMode)
JCalc API 2014 Davor Sauer - Apache 2.0