name
name: (RoundingMode) -> stringThe constant's name as declared.
RoundingMode.valueOf(…)
RoundingMode.UP
RoundingMode.DOWN| Method | Returns | Description |
|---|---|---|
name() | string | The constant's name as declared. |
ordinal() | number | The constant's 0-based position in values(). |
toString() | string | The constant's printed name; tostring(c) answers the same. |
compareTo(RoundingMode) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
values() | {RoundingMode} | Every constant in ordinal order, as a new 1-based array. |
valueOf(string) | RoundingMode | The constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
UP | RoundingMode | RoundingMode.UP. |
DOWN | RoundingMode | RoundingMode.DOWN. |
CEILING | RoundingMode | RoundingMode.CEILING. |
FLOOR | RoundingMode | RoundingMode.FLOOR. |
HALF_UP | RoundingMode | RoundingMode.HALF_UP. |
HALF_DOWN | RoundingMode | RoundingMode.HALF_DOWN. |
HALF_EVEN | RoundingMode | RoundingMode.HALF_EVEN. |
UNNECESSARY | RoundingMode | RoundingMode.UNNECESSARY. |
| Method | Returns | Description |
|---|---|---|
DecimalFormat.getRoundingMode | RoundingMode | The rounding mode. |
RoundingModeClass.valueOf | RoundingMode | The constant named name; any other name is an error. |
RoundingModeClass.values | {RoundingMode} | Every constant in ordinal order, as a new 1-based array. |
namename: (RoundingMode) -> stringThe constant's name as declared.
ordinalordinal: (RoundingMode) -> numberThe constant's 0-based position in values().
toStringtoString: (RoundingMode) -> stringThe constant's printed name; tostring(c) answers the same.
compareTocompareTo: (RoundingMode, RoundingMode) -> numberThis ordinal less other's.
equalsequals: (RoundingMode, any) -> booleanWhether other is this constant. == answers the same.
valuesvalues: () -> {RoundingMode}Every constant in ordinal order, as a new 1-based array.
valueOfvalueOf: (string) -> RoundingModeThe constant named name; any other name is an error.