public enum FloatingPointRoundingMode extends Enum<FloatingPointRoundingMode>
| Enum Constant and Description |
|---|
NEAREST_TIES_AWAY |
NEAREST_TIES_TO_EVEN |
TOWARD_NEGATIVE |
TOWARD_POSITIVE |
TOWARD_ZERO |
| Modifier and Type | Method and Description |
|---|---|
static FloatingPointRoundingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FloatingPointRoundingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FloatingPointRoundingMode NEAREST_TIES_TO_EVEN
public static final FloatingPointRoundingMode NEAREST_TIES_AWAY
public static final FloatingPointRoundingMode TOWARD_POSITIVE
public static final FloatingPointRoundingMode TOWARD_NEGATIVE
public static final FloatingPointRoundingMode TOWARD_ZERO
public static FloatingPointRoundingMode[] values()
for (FloatingPointRoundingMode c : FloatingPointRoundingMode.values()) System.out.println(c);
public static FloatingPointRoundingMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null