applyPattern
applyPattern: (DecimalFormat, string) -> ()Replace the pattern.
NumberFormat.getInstance()
NumberFormat.getNumberInstance()
NumberFormat.getIntegerInstance()| Method | Returns | Description |
|---|---|---|
applyPattern(string) | () | Replace the pattern. |
setRoundingMode(RoundingMode) | () | The rounding mode. |
getRoundingMode() | RoundingMode | The rounding mode. |
setGroupingSize(number) | () | The digits per group. |
getGroupingSize() | number | The digits per group. |
setDecimalSeparatorAlwaysShown(boolean) | () | Whether a whole number still shows the decimal separator. |
setMultiplier(number) | () | The multiplier (100 for percent). |
setPositivePrefix(string) | () | The positive prefix. |
setPositiveSuffix(string) | () | The positive suffix. |
setNegativePrefix(string) | () | The negative prefix. |
setNegativeSuffix(string) | () | The negative suffix. |
new() | DecimalFormat | () -> DecimalFormat: #,##0.###. |
new(string) | DecimalFormat |
| Method | Returns | Description |
|---|---|---|
DecimalFormatClass.new | DecimalFormat | () -> DecimalFormat: #,##0.###. |
NumberFormatClass.getInstance | DecimalFormat | #,##0.### in the default locale. |
NumberFormatClass.getIntegerInstance | DecimalFormat | #,##0 rounding HALF_EVEN, parsing integers only. |
NumberFormatClass.getNumberInstance | DecimalFormat | #,##0.### in the default locale. |
NumberFormatClass.getPercentInstance | DecimalFormat | #,##0%. |
applyPatternapplyPattern: (DecimalFormat, string) -> ()Replace the pattern.
setRoundingModesetRoundingMode: (DecimalFormat, RoundingMode) -> ()The rounding mode.
getRoundingModegetRoundingMode: (DecimalFormat) -> RoundingModeThe rounding mode.
setGroupingSizesetGroupingSize: (DecimalFormat, number) -> ()The digits per group.
getGroupingSizegetGroupingSize: (DecimalFormat) -> numberThe digits per group.
setDecimalSeparatorAlwaysShownsetDecimalSeparatorAlwaysShown: (DecimalFormat, boolean) -> ()Whether a whole number still shows the decimal separator.
setMultipliersetMultiplier: (DecimalFormat, number) -> ()The multiplier (100 for percent).
setPositivePrefixsetPositivePrefix: (DecimalFormat, string) -> ()The positive prefix.
setPositiveSuffixsetPositiveSuffix: (DecimalFormat, string) -> ()The positive suffix.
setNegativePrefixsetNegativePrefix: (DecimalFormat, string) -> ()The negative prefix.
setNegativeSuffixsetNegativeSuffix: (DecimalFormat, string) -> ()The negative suffix.
newnew: (() -> DecimalFormat) & ((string) -> DecimalFormat)() -> DecimalFormat: #,##0.###.
(string) -> DecimalFormat: A format for pattern; an invalid pattern is IllegalArgumentException.