# CompactDecimalFormat

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# CompactDecimalFormat

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/icu/text/CompactDecimalFormat "View this page in Java")  

```
open class CompactDecimalFormat : DecimalFormat
```

|---|---|---|---|---|--------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                             ||||||
| ↳ | [java.text.Format](https://developer.android.com/reference/kotlin/java/text/Format.html#)                                                  |||||
|   | ↳ | [android.icu.text.UFormat](https://developer.android.com/reference/kotlin/android/icu/text/UFormat)                                     ||||
|   |   | ↳ | [android.icu.text.NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)                        |||
|   |   |   | ↳ | [android.icu.text.DecimalFormat](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat)                   ||
|   |   |   |   | ↳ | [android.icu.text.CompactDecimalFormat](https://developer.android.com/reference/kotlin/android/icu/text/CompactDecimalFormat#) |

Formats numbers in compact (abbreviated) notation, like "1.2K" instead of "1200".

**IMPORTANT:** New users are strongly encouraged to see if[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)fits their use case. Although not deprecated, this class, CompactDecimalFormat, is provided for backwards compatibility only.
The CompactDecimalFormat produces abbreviated numbers, suitable for display in environments will limited real estate. For example, 'Hits: 1.2B' instead of 'Hits: 1,200,000,000'. The format will be appropriate for the given language, such as "1,2 Mrd." for German.

For numbers under 1000 trillion (under 10\^15, such as 123,456,789,012,345), the result will be short for supported languages. However, the result may sometimes exceed 7 characters, such as when there are combining marks or thin characters. In such cases, the visual width in fonts should still be short.

By default, there are 2 significant digits. After creation, if more than three significant digits are set (with setMaximumSignificantDigits), or if a fixed number of digits are set (with setMaximumIntegerDigits or setMaximumFractionDigits), then result may be wider.

The "short" style is also capable of formatting currency amounts, such as "$1.2M" instead of "$1,200,000.00" (English) or "5,3 Mio. €" instead of "5.300.000,00 €" (German). Localized data concerning longer formats is not available yet in the Unicode CLDR. Because of this, attempting to format a currency amount using the "long" style will produce an UnsupportedOperationException.

At this time, negative numbers and parsing are not supported, and will produce an UnsupportedOperationException. Resetting the pattern prefixes or suffixes is not supported; the method calls are ignored.

Note that important methods, like setting the number of decimals, will be moved up from DecimalFormat to NumberFormat.

## Summary

|                                                                         Nested classes                                                                         ||
|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   | [CompactStyle](https://developer.android.com/reference/kotlin/android/icu/text/CompactDecimalFormat.CompactStyle) Style parameter for CompactDecimalFormat. |

| Inherited constants ||
|---|---|
| From class[NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat) |----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [ACCOUNTINGCURRENCYSTYLE](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#ACCOUNTINGCURRENCYSTYLE:kotlin.Int) <br /> **\[icu\]** Constant to specify currency style of format which uses currency symbol to represent currency for accounting, for example: "($3.00), instead of "-$3.00" ([CURRENCYSTYLE](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#CURRENCYSTYLE:kotlin.Int)). Overrides any style specified using -cf- key in locale. <br /> | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CASHCURRENCYSTYLE](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#CASHCURRENCYSTYLE:kotlin.Int) <br /> **\[icu\]**Constant to specify currency cash style of format which uses currency ISO code to represent currency, for example: "NT$3" instead of "NT$3.23". <br />                                                                                                                                                                                                         | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CURRENCYSTYLE](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#CURRENCYSTYLE:kotlin.Int) <br /> **\[icu\]**Constant to specify general currency style of format. Defaults to STANDARDCURRENCYSTYLE, using currency symbol, for example "$3.00", with non-accounting style for negative values (e.g. minus sign). The specific style may be specified using the -cf- locale key. <br />                                                                                            | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FRACTION_FIELD](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#FRACTION_FIELD:kotlin.Int) <br /> Field constant used to construct a FieldPosition object. Signifies that the position of the fraction part of a formatted number should be returned. <br />                                                                                                                                                                                                                      | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [INTEGERSTYLE](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#INTEGERSTYLE:kotlin.Int) <br /> **\[icu\]**Constant to specify a integer number style format. <br />                                                                                                                                                                                                                                                                                                                | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [INTEGER_FIELD](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#INTEGER_FIELD:kotlin.Int) <br /> Field constant used to construct a FieldPosition object. Signifies that the position of the integer part of a formatted number should be returned. <br />                                                                                                                                                                                                                         | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [ISOCURRENCYSTYLE](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#ISOCURRENCYSTYLE:kotlin.Int) <br /> **\[icu\]**Constant to specify currency style of format which uses currency ISO code to represent currency, for example: "USD3.00". <br />                                                                                                                                                                                                                                  | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [NUMBERSTYLE](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#NUMBERSTYLE:kotlin.Int) <br /> **\[icu\]**Constant to specify normal number style of format. <br />                                                                                                                                                                                                                                                                                                                  | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PERCENTSTYLE](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#PERCENTSTYLE:kotlin.Int) <br /> **\[icu\]**Constant to specify a style of format to display percent. <br />                                                                                                                                                                                                                                                                                                         | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PLURALCURRENCYSTYLE](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#PLURALCURRENCYSTYLE:kotlin.Int) <br /> **\[icu\]**Constant to specify currency style of format which uses currency long name with plural format to represent currency, for example, "3.00 US Dollars". <br />                                                                                                                                                                                                | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SCIENTIFICSTYLE](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#SCIENTIFICSTYLE:kotlin.Int) <br /> **\[icu\]**Constant to specify a style of format to display scientific number. <br />                                                                                                                                                                                                                                                                                         | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [STANDARDCURRENCYSTYLE](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#STANDARDCURRENCYSTYLE:kotlin.Int) <br /> **\[icu\]**Constant to specify currency style of format which uses currency symbol to represent currency, for example "$3.00", using non-accounting style for negative values (e.g. minus sign). Overrides any style specified using -cf- key in locale. <br />                                                                                                   | ||
| From class[DecimalFormat](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat) |----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MINIMUM_GROUPING_DIGITS_AUTO](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#MINIMUM_GROUPING_DIGITS_AUTO:kotlin.Int) <br /> **\[icu\]** Constant for[setMinimumGroupingDigits(int)](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMinimumGroupingDigits(kotlin.Int))to specify display grouping using the default strategy for all locales. <br />                                                                                                              | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MINIMUM_GROUPING_DIGITS_MIN2](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#MINIMUM_GROUPING_DIGITS_MIN2:kotlin.Int) <br /> **\[icu\]** Constant for[setMinimumGroupingDigits(int)](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMinimumGroupingDigits(kotlin.Int))to specify display grouping using locale defaults, except do not show grouping on values smaller than 10000 (such that there is a minimum of two digits before the first separator). <br /> | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PAD_AFTER_PREFIX](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#PAD_AFTER_PREFIX:kotlin.Int) <br /> **\[icu\]** Constant for[getPadPosition()](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getPadPosition())and[setPadPosition(int)](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setPadPosition(kotlin.Int))to specify pad characters inserted after the prefix. <br />                                                        | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PAD_AFTER_SUFFIX](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#PAD_AFTER_SUFFIX:kotlin.Int) <br /> **\[icu\]** Constant for[getPadPosition()](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getPadPosition())and[setPadPosition(int)](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setPadPosition(kotlin.Int))to specify pad characters inserted after the suffix. <br />                                                        | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PAD_BEFORE_PREFIX](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#PAD_BEFORE_PREFIX:kotlin.Int) <br /> **\[icu\]** Constant for[getPadPosition()](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getPadPosition())and[setPadPosition(int)](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setPadPosition(kotlin.Int))to specify pad characters inserted before the prefix. <br />                                                     | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PAD_BEFORE_SUFFIX](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#PAD_BEFORE_SUFFIX:kotlin.Int) <br /> **\[icu\]** Constant for[getPadPosition()](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getPadPosition())and[setPadPosition(int)](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setPadPosition(kotlin.Int))to specify pad characters inserted before the suffix. <br />                                                     | ||

|                                                                                                                                                                                                                                                                                                                                                                               Public methods                                                                                                                                                                                                                                                                                                                                                                                ||
|--------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| openstatic[CompactDecimalFormat](https://developer.android.com/reference/kotlin/android/icu/text/CompactDecimalFormat#)! | [getInstance](https://developer.android.com/reference/kotlin/android/icu/text/CompactDecimalFormat#getInstance(android.icu.util.ULocale,%20android.icu.text.CompactDecimalFormat.CompactStyle))`(`locale:` `[ULocale](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.html#)!`, `style:` `[CompactDecimalFormat.CompactStyle](https://developer.android.com/reference/kotlin/android/icu/text/CompactDecimalFormat.CompactStyle)!`)` **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat. |
| openstatic[CompactDecimalFormat](https://developer.android.com/reference/kotlin/android/icu/text/CompactDecimalFormat#)! | [getInstance](https://developer.android.com/reference/kotlin/android/icu/text/CompactDecimalFormat#getInstance(java.util.Locale,%20android.icu.text.CompactDecimalFormat.CompactStyle))`(`locale:` `[Locale](https://developer.android.com/reference/kotlin/java/util/Locale.html#)!`, `style:` `[CompactDecimalFormat.CompactStyle](https://developer.android.com/reference/kotlin/android/icu/text/CompactDecimalFormat.CompactStyle)!`)` **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat.                  |
| open[Number](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html)!                                    | [parse](https://developer.android.com/reference/kotlin/android/icu/text/CompactDecimalFormat#parse(kotlin.String,%20java.text.ParsePosition))`(`text:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `parsePosition:` `[ParsePosition](https://developer.android.com/reference/kotlin/java/text/ParsePosition.html#)!`)` Parsing is currently unsupported, and throws an UnsupportedOperationException.                                                                                                                                                                                                    |
| open[CurrencyAmount](https://developer.android.com/reference/kotlin/android/icu/util/CurrencyAmount.html#)!              | [parseCurrency](https://developer.android.com/reference/kotlin/android/icu/text/CompactDecimalFormat#parseCurrency(kotlin.CharSequence,%20java.text.ParsePosition))`(`text:` `[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!`, `parsePosition:` `[ParsePosition](https://developer.android.com/reference/kotlin/java/text/ParsePosition.html#)!`)` Parsing is currently unsupported, and throws an UnsupportedOperationException.                                                                                                                                                                 |

| Inherited functions ||
|---|---|
| From class[DecimalFormat](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat) |----------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [applyLocalizedPattern](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#applyLocalizedPattern(kotlin.String))`(`localizedPattern:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br /> Converts the given string to standard notation and then parses it using[applyPattern](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#applyPattern(kotlin.String)). This method is provided for backwards compatibility and should not be used in new projects. Localized notation means that instead of using generic placeholders in the pattern, you use the corresponding locale-specific characters instead. For example, in locale*fr-FR*, the period in the pattern "0.000" means "decimal" in standard notation (as it does in every other locale), but it means "grouping" in localized notation. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [applyPattern](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#applyPattern(kotlin.String))`(`pattern:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br /> Parses the given pattern string and overwrites the settings specified in the pattern string. The properties corresponding to the following setters are overwritten, either with their default values or with the value specified in the pattern string: 1. [setDecimalSeparatorAlwaysShown](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setDecimalSeparatorAlwaysShown(kotlin.Boolean)) 2. [setExponentSignAlwaysShown](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setExponentSignAlwaysShown(kotlin.Boolean)) 3. [setFormatWidth](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setFormatWidth(kotlin.Int)) 4. [setGroupingSize](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setGroupingSize(kotlin.Int)) 5. [setMultiplier](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMultiplier(kotlin.Int))(percent/permille) 6. [setMaximumFractionDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMaximumFractionDigits(kotlin.Int)) 7. [setMaximumIntegerDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMaximumIntegerDigits(kotlin.Int)) 8. [setMaximumSignificantDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMaximumSignificantDigits(kotlin.Int)) 9. [setMinimumExponentDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMinimumExponentDigits(kotlin.Byte)) 10. [setMinimumFractionDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMinimumFractionDigits(kotlin.Int)) 11. [setMinimumIntegerDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMinimumIntegerDigits(kotlin.Int)) 12. [setMinimumSignificantDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMinimumSignificantDigits(kotlin.Int)) 13. [setPadPosition](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setPadPosition(kotlin.Int)) 14. [setPadCharacter](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setPadCharacter(kotlin.Char)) 15. setRoundingIncrement 16. [setSecondaryGroupingSize](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setSecondaryGroupingSize(kotlin.Int)) All other settings remain untouched. <br /> For more information on pattern strings, see[UTS #35](http://unicode.org/reports/tr35/tr35-numbers.html#Number_Format_Patterns). <br /> | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                         | [areSignificantDigitsUsed](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#areSignificantDigitsUsed())`()` <br /> **\[icu\]**Returns whether significant digits are being used in rounding. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                 | [clone](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#clone())`()` <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                         | [equals](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` <br /> Tests for equality between this formatter and another formatter. If two DecimalFormat instances are equal, then they will always produce the same output. However, the reverse is not necessarily true: if two DecimalFormat instances always produce the same output, they are not necessarily equal. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [StringBuffer](https://developer.android.com/reference/kotlin/java/lang/StringBuffer.html#)!                               | [format](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#format(android.icu.math.BigDecimal,%20java.lang.StringBuffer,%20java.text.FieldPosition))`(`number:` `[BigDecimal](https://developer.android.com/reference/kotlin/android/icu/math/BigDecimal.html#)!`, `result:` `[StringBuffer](https://developer.android.com/reference/kotlin/java/lang/StringBuffer.html#)!`, `fieldPosition:` `[FieldPosition](https://developer.android.com/reference/kotlin/java/text/FieldPosition.html#)!`)` <br /> **\[icu\]**Formats an ICU BigDecimal. Specialization of format. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | [StringBuffer](https://developer.android.com/reference/kotlin/java/lang/StringBuffer.html#)!                               | [format](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#format(android.icu.util.CurrencyAmount,%20java.lang.StringBuffer,%20java.text.FieldPosition))`(`currAmt:` `[CurrencyAmount](https://developer.android.com/reference/kotlin/android/icu/util/CurrencyAmount.html#)!`, `result:` `[StringBuffer](https://developer.android.com/reference/kotlin/java/lang/StringBuffer.html#)!`, `fieldPosition:` `[FieldPosition](https://developer.android.com/reference/kotlin/java/text/FieldPosition.html#)!`)` <br /> **\[icu\]**Formats a CurrencyAmount. Specialization of format. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | [StringBuffer](https://developer.android.com/reference/kotlin/java/lang/StringBuffer.html#)!                               | [format](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#format(kotlin.Double,%20java.lang.StringBuffer,%20java.text.FieldPosition))`(`number:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `result:` `[StringBuffer](https://developer.android.com/reference/kotlin/java/lang/StringBuffer.html#)!`, `fieldPosition:` `[FieldPosition](https://developer.android.com/reference/kotlin/java/text/FieldPosition.html#)!`)` <br /> Specialization of format. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [StringBuffer](https://developer.android.com/reference/kotlin/java/lang/StringBuffer.html#)!                               | [format](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#format(java.math.BigDecimal,%20java.lang.StringBuffer,%20java.text.FieldPosition))`(`number:` `[BigDecimal](https://developer.android.com/reference/kotlin/java/math/BigDecimal.html#)!`, `result:` `[StringBuffer](https://developer.android.com/reference/kotlin/java/lang/StringBuffer.html#)!`, `fieldPosition:` `[FieldPosition](https://developer.android.com/reference/kotlin/java/text/FieldPosition.html#)!`)` <br /> **\[icu\]**Formats a BigDecimal. Specialization of format. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [StringBuffer](https://developer.android.com/reference/kotlin/java/lang/StringBuffer.html#)!                               | [format](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#format(java.math.BigInteger,%20java.lang.StringBuffer,%20java.text.FieldPosition))`(`number:` `[BigInteger](https://developer.android.com/reference/kotlin/java/math/BigInteger.html#)!`, `result:` `[StringBuffer](https://developer.android.com/reference/kotlin/java/lang/StringBuffer.html#)!`, `fieldPosition:` `[FieldPosition](https://developer.android.com/reference/kotlin/java/text/FieldPosition.html#)!`)` <br /> **\[icu\]**Formats a BigInteger. Specialization of format. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [StringBuffer](https://developer.android.com/reference/kotlin/java/lang/StringBuffer.html#)!                               | [format](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#format(kotlin.Long,%20java.lang.StringBuffer,%20java.text.FieldPosition))`(`number:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `result:` `[StringBuffer](https://developer.android.com/reference/kotlin/java/lang/StringBuffer.html#)!`, `fieldPosition:` `[FieldPosition](https://developer.android.com/reference/kotlin/java/text/FieldPosition.html#)!`)` <br /> Specialization of format. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | [AttributedCharacterIterator](https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.html#)! | [formatToCharacterIterator](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#formatToCharacterIterator(kotlin.Any))`(`obj:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)!`)` <br /> Formats an Object producing an`AttributedCharacterIterator`. You can use the returned`AttributedCharacterIterator`to build the resulting String, as well as to determine information about the resulting String. Each attribute key of the AttributedCharacterIterator will be of type`Field`. It is up to each`Format`implementation to define what the legal values are for each attribute in the`AttributedCharacterIterator`, but typically the attribute key is also used as the attribute value. The default implementation creates an`AttributedCharacterIterator`with no attributes. Subclasses that support fields should override this and create an`AttributedCharacterIterator`with meaningful attributes. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [Currency](https://developer.android.com/reference/kotlin/android/icu/util/Currency.html#)!                                | [getCurrency](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getCurrency())`()` <br /> Returns the currency used to display currency amounts. May be null. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | [CurrencyPluralInfo](https://developer.android.com/reference/kotlin/android/icu/text/CurrencyPluralInfo)!                  | [getCurrencyPluralInfo](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getCurrencyPluralInfo())`()` <br /> **\[icu\]**Returns the current instance of CurrencyPluralInfo. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | [Currency.CurrencyUsage](https://developer.android.com/reference/kotlin/android/icu/util/Currency.CurrencyUsage.html#)!    | [getCurrencyUsage](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getCurrencyUsage())`()` <br /> **\[icu\]**Returns the strategy for rounding currency amounts. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | [DecimalFormatSymbols](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormatSymbols)!              | [getDecimalFormatSymbols](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getDecimalFormatSymbols())`()` <br /> Returns a copy of the decimal format symbols used by this formatter. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [getFormatWidth](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getFormatWidth())`()` <br /> Returns the minimum number of characters in formatted output. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [getGroupingSize](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getGroupingSize())`()` <br /> Returns the primary grouping size in use. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [MathContext](https://developer.android.com/reference/kotlin/java/math/MathContext.html#)!                                 | [getMathContext](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getMathContext())`()` <br /> **\[icu\]** Returns the[java.math.MathContext](https://developer.android.com/reference/kotlin/java/math/MathContext.html#)being used to round numbers. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [MathContext](https://developer.android.com/reference/kotlin/android/icu/math/MathContext.html#)!                          | [getMathContextICU](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getMathContextICU())`()` <br /> **\[icu\]** Returns the[android.icu.math.MathContext](https://developer.android.com/reference/kotlin/android/icu/math/MathContext.html#)being used to round numbers. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [getMaximumFractionDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getMaximumFractionDigits())`()` <br /> Returns the effective maximum number of integer digits after the decimal separator. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [getMaximumIntegerDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getMaximumIntegerDigits())`()` <br /> Returns the effective maximum number of digits before the decimal separator. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [getMaximumSignificantDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getMaximumSignificantDigits())`()` <br /> **\[icu\]**Returns the effective maximum number of significant digits displayed. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html)                                               | [getMinimumExponentDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getMinimumExponentDigits())`()` <br /> **\[icu\]**Returns the minimum number of digits printed in the exponent in scientific notation. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [getMinimumFractionDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getMinimumFractionDigits())`()` <br /> Returns the effective minimum number of integer digits after the decimal separator. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [getMinimumGroupingDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getMinimumGroupingDigits())`()` <br /> **\[icu\]**Returns the minimum number of digits before grouping is triggered. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [getMinimumIntegerDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getMinimumIntegerDigits())`()` <br /> Returns the effective minimum number of digits before the decimal separator. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [getMinimumSignificantDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getMinimumSignificantDigits())`()` <br /> **\[icu\]**Returns the effective minimum number of significant digits displayed. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [getMultiplier](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getMultiplier())`()` <br /> Returns the multiplier being applied to numbers before they are formatted. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                          | [getNegativePrefix](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getNegativePrefix())`()` <br /> **Affixes:**Gets the negative prefix string currently being used to format numbers. If the affix was specified via the pattern, the string returned by this method will have locale symbols substituted in place of special characters according to the LDML specification. If the affix was specified via[setNegativePrefix](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setNegativePrefix(kotlin.String)), the string will be returned literally. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                          | [getNegativeSuffix](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getNegativeSuffix())`()` <br /> **Affixes:**Gets the negative suffix string currently being used to format numbers. If the affix was specified via the pattern, the string returned by this method will have locale symbols substituted in place of special characters according to the LDML specification. If the affix was specified via[setNegativeSuffix](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setNegativeSuffix(kotlin.String)), the string will be returned literally. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html)                                               | [getPadCharacter](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getPadCharacter())`()` <br /> **\[icu\]**Returns the character used for padding. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [getPadPosition](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getPadPosition())`()` <br /> **\[icu\]**Returns the position used for padding. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [getParseMaxDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getParseMaxDigits())`()` <br /> Always returns 1000, the default prior to ICU 59. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                          | [getPositivePrefix](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getPositivePrefix())`()` <br /> **Affixes:**Gets the positive prefix string currently being used to format numbers. If the affix was specified via the pattern, the string returned by this method will have locale symbols substituted in place of special characters according to the LDML specification. If the affix was specified via[setPositivePrefix](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setPositivePrefix(kotlin.String)), the string will be returned literally. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                          | [getPositiveSuffix](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getPositiveSuffix())`()` <br /> **Affixes:**Gets the positive suffix string currently being used to format numbers. If the affix was specified via the pattern, the string returned by this method will have locale symbols substituted in place of special characters according to the LDML specification. If the affix was specified via[setPositiveSuffix](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setPositiveSuffix(kotlin.String)), the string will be returned literally. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [BigDecimal](https://developer.android.com/reference/kotlin/java/math/BigDecimal.html#)!                                   | [getRoundingIncrement](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getRoundingIncrement())`()` <br /> **\[icu\]**Returns the increment to which numbers are being rounded. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [getRoundingMode](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getRoundingMode())`()` <br /> Returns the rounding mode being used to round numbers. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [getSecondaryGroupingSize](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#getSecondaryGroupingSize())`()` <br /> **\[icu\]**Returns the secondary grouping size in use. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                 | [hashCode](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#hashCode())`()` <br /> Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by[java.util.HashMap](https://developer.android.com/reference/kotlin/java/util/HashMap.html#). The general contract of`hashCode`is: - Whenever it is invoked on the same object more than once during an execution of a Java application, the`hashCode`method must consistently return the same integer, provided no information used in`equals`comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application. - If two objects are equal according to the[equals](https://developer.android.com/reference/kotlin/java/lang/Object.html#equals(kotlin.Any))method, then calling the`hashCode`method on each of the two objects must produce the same integer result. - It is*not* required that if two objects are unequal according to the[equals](https://developer.android.com/reference/kotlin/java/lang/Object.html#equals(kotlin.Any))method, then calling the`hashCode`method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                         | [isDecimalPatternMatchRequired](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#isDecimalPatternMatchRequired())`()` <br /> **\[icu\]**Returns whether the presence of a decimal point must match the pattern. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                         | [isDecimalSeparatorAlwaysShown](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#isDecimalSeparatorAlwaysShown())`()` <br /> Returns whether the decimal separator is shown on integers. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                         | [isExponentSignAlwaysShown](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#isExponentSignAlwaysShown())`()` <br /> **\[icu\]**Returns whether the sign (plus or minus) is always printed in scientific notation. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                         | [isGroupingUsed](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#isGroupingUsed())`()` <br /> Returns whether or not grouping separators are being printed in the output. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                         | [isParseBigDecimal](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#isParseBigDecimal())`()` <br /> Returns whether #parse will always return a BigDecimal. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                         | [isParseCaseSensitive](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#isParseCaseSensitive())`()` <br /> **\[icu\]**Returns whether to force case (uppercase/lowercase) to match when parsing. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                         | [isParseIntegerOnly](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#isParseIntegerOnly())`()` <br /> Returns true if this format will parse numbers as integers only. For example in the English locale, with ParseIntegerOnly true, the string "1234." would be parsed as the integer value 1234 and parsing would stop at the "." character. The decimal separator accepted by the parse operation is locale-dependent and determined by the subclass. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                         | [isParseNoExponent](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#isParseNoExponent())`()` <br /> **\[icu\]**Returns whether to ignore exponents when parsing. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                         | [isParseStrict](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#isParseStrict())`()` <br /> **\[icu\]**Returns whether strict parsing is in effect. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                         | [isScientificNotation](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#isScientificNotation())`()` <br /> **\[icu\]**Returns whether scientific (exponential) notation is enabled on this formatter. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                         | [isSignAlwaysShown](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#isSignAlwaysShown())`()` <br /> **\[icu\]**Returns whether the sign is being shown on positive numbers. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setCurrency](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setCurrency(android.icu.util.Currency))`(`currency:` `[Currency](https://developer.android.com/reference/kotlin/android/icu/util/Currency.html#)!`)` <br /> Sets the currency to be used when formatting numbers. The effect is twofold: 1. Substitutions for currency symbols in the pattern string will use this currency 2. The rounding mode will obey the rules for this currency (see[setCurrencyUsage](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setCurrencyUsage(android.icu.util.Currency.CurrencyUsage))) **Important:** Displaying the currency in the output requires that the patter associated with this formatter contains a currency symbol '¤'. This will be the case if the instance was created via #getCurrencyInstance or one of its friends. <br /> <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setCurrencyPluralInfo](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setCurrencyPluralInfo(android.icu.text.CurrencyPluralInfo))`(`newInfo:` `[CurrencyPluralInfo](https://developer.android.com/reference/kotlin/android/icu/text/CurrencyPluralInfo)!`)` <br /> **\[icu\]**Sets a custom instance of CurrencyPluralInfo. CurrencyPluralInfo generates pattern strings for printing currency long names. **Most users should not call this method directly.** You should instead create your formatter via`NumberFormat.getInstance(NumberFormat.PLURALCURRENCYSTYLE)`. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setCurrencyUsage](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setCurrencyUsage(android.icu.util.Currency.CurrencyUsage))`(`usage:` `[Currency.CurrencyUsage](https://developer.android.com/reference/kotlin/android/icu/util/Currency.CurrencyUsage.html#)!`)` <br /> **\[icu\]**Sets the currency-dependent strategy to use when rounding numbers. There are two strategies: - STANDARD: When the amount displayed is intended for banking statements or electronic transfer. - CASH: When the amount displayed is intended to be representable in physical currency, like at a cash register. CASH mode is relevant in currencies that do not have tender down to the penny. For more information on the two rounding strategies, see[UTS #35](http://unicode.org/reports/tr35/tr35-numbers.html#Supplemental_Currency_Data). If omitted, the strategy defaults to STANDARD. To override currency rounding altogether, use[setMinimumFractionDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMinimumFractionDigits(kotlin.Int))and[setMaximumFractionDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMaximumFractionDigits(kotlin.Int))or #setRoundingIncrement. <br /> <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setDecimalFormatSymbols](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setDecimalFormatSymbols(android.icu.text.DecimalFormatSymbols))`(`newSymbols:` `[DecimalFormatSymbols](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormatSymbols)!`)` <br /> Sets the decimal format symbols used by this formatter. The formatter uses a copy of the provided symbols. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setDecimalPatternMatchRequired](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setDecimalPatternMatchRequired(kotlin.Boolean))`(`value:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> **\[icu\]** **Parsing:** This method is used to either*require*or the presence of a decimal point in the string being parsed (disabled by default). This feature was designed to be an extra layer of strictness on top of strict parsing, although it can be used in either lenient mode or strict mode. To*require* a decimal point, call this method in combination with either a pattern containing a decimal point or with[setDecimalSeparatorAlwaysShown](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setDecimalSeparatorAlwaysShown(kotlin.Boolean)). ```kotlin // Require a decimal point in the string being parsed: df.applyPattern("#."); df.setDecimalPatternMatchRequired(true); // Alternatively: df.setDecimalSeparatorAlwaysShown(true); df.setDecimalPatternMatchRequired(true); ``` To*forbid* a decimal point, call this method in combination with a pattern containing no decimal point. Alternatively, use[setParseIntegerOnly](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setParseIntegerOnly(kotlin.Boolean))for the same behavior without depending on the contents of the pattern string. ```kotlin // Forbid a decimal point in the string being parsed: df.applyPattern("#"); df.setDecimalPatternMatchRequired(true); ``` <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setDecimalSeparatorAlwaysShown](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setDecimalSeparatorAlwaysShown(kotlin.Boolean))`(`value:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> **Separators:** Sets whether the decimal separator (a period in*en-US*) is shown on integers. For example, if this setting is turned on, formatting 123 will result in "123." with the decimal separator. This setting can be specified in the pattern for integer formats: "#,##0." is an example. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setExponentSignAlwaysShown](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setExponentSignAlwaysShown(kotlin.Boolean))`(`expSignAlways:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> **\[icu\]** **Scientific Notation:** Sets whether the sign (plus or minus) is always to be shown in the exponent in scientific notation. For example, if this setting is enabled, the number 123000 will be printed as "1.23E+5" in locale*en-US* . The number 0.0000123 will always be printed as "1.23E-5" in locale*en-US*whether or not this setting is enabled. This setting corresponds to the '+' in a pattern such as "0.00E+0". <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setFormatWidth](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setFormatWidth(kotlin.Int))`(`width:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **Padding:**Sets the minimum width of the string output by the formatting pipeline. For example, if padding is enabled and paddingWidth is set to 6, formatting the number "3.14159" with the pattern "0.00" will result in "··3.14" if '·' is your padding string. If the number is longer than your padding width, the number will display as if no padding width had been specified, which may result in strings longer than the padding width. Padding can be specified in the pattern string using the '\*' symbol. For example, the format "\*x######0" has a format width of 7 and a pad character of 'x'. Padding is currently counted in UTF-16 code units; see[ticket #13034](https://unicode-org.atlassian.net/browse/ICU-13034)for more information. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setGroupingSize](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setGroupingSize(kotlin.Int))`(`width:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **Grouping:**Sets the primary grouping size (distance between grouping separators) used when formatting large numbers. For most locales, this defaults to 3: the number of digits between the ones and thousands place, between thousands and millions, and so forth. For example, with a grouping size of 3, the number 1234567 will be formatted as "1,234,567". Grouping size can also be specified in the pattern: for example, "#,##0" corresponds to a grouping size of 3. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setGroupingUsed](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setGroupingUsed(kotlin.Boolean))`(`enabled:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> **Grouping:** Sets whether grouping is to be used when formatting numbers. Grouping means whether the thousands, millions, billions, and larger powers of ten should be separated by a grouping separator (a comma in*en-US*). For example, if grouping is enabled, 12345 will be printed as "12,345" in*en-US*. If grouping were disabled, it would instead be printed as simply "12345". <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setMathContext](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMathContext(java.math.MathContext))`(`mathContext:` `[MathContext](https://developer.android.com/reference/kotlin/java/math/MathContext.html#)!`)` <br /> **\[icu\]** **Rounding and Digit Limits:** Sets the[java.math.MathContext](https://developer.android.com/reference/kotlin/java/math/MathContext.html#)used to round numbers. A "math context" encodes both a rounding mode and a number of significant digits. Most users should call[setRoundingMode](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setRoundingMode(kotlin.Int))and/or[setMaximumSignificantDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMaximumSignificantDigits(kotlin.Int))instead of this method. When formatting, since no division is ever performed, the default MathContext is unlimited significant digits. However, when division occurs during parsing to correct for percentages and multipliers, a MathContext of 34 digits, the IEEE 754R Decimal128 standard, is used by default. If you require more than 34 digits when parsing, you can set a custom MathContext using this method. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setMathContextICU](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMathContextICU(android.icu.math.MathContext))`(`mathContextICU:` `[MathContext](https://developer.android.com/reference/kotlin/android/icu/math/MathContext.html#)!`)` <br /> **\[icu\]** **Rounding and Digit Limits:** Overload of[setMathContext](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMathContext(java.math.MathContext))for[android.icu.math.MathContext](https://developer.android.com/reference/kotlin/android/icu/math/MathContext.html#). <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setMaximumFractionDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMaximumFractionDigits(kotlin.Int))`(`value:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **Rounding and Digit Limits:**Sets the maximum number of digits to display after the decimal separator. If the number has more than this many digits, the number is rounded according to the rounding mode. For example, if maximum fraction digits is 2, the number 123.456 will be printed as "123.46". Minimum integer and minimum and maximum fraction digits can be specified via the pattern string. For example, "#,#00.00#" has 2 minimum integer digits, 2 minimum fraction digits, and 3 maximum fraction digits. Note that it is not possible to specify maximum integer digits in the pattern except in scientific notation. If minimum and maximum integer, fraction, or significant digits conflict with each other, the most recently specified value is used. For example, if there is a formatter with minInt=5, and then you set maxInt=3, then minInt will be changed to 3. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setMaximumIntegerDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMaximumIntegerDigits(kotlin.Int))`(`value:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **Rounding and Digit Limits:**Sets the maximum number of digits to display before the decimal separator. If the number has more than this many digits, the number is truncated. For example, if maximum integer digits is 3, the number 12345 will be printed as "345". Minimum integer and minimum and maximum fraction digits can be specified via the pattern string. For example, "#,#00.00#" has 2 minimum integer digits, 2 minimum fraction digits, and 3 maximum fraction digits. Note that it is not possible to specify maximum integer digits in the pattern except in scientific notation. If minimum and maximum integer, fraction, or significant digits conflict with each other, the most recently specified value is used. For example, if there is a formatter with minInt=5, and then you set maxInt=3, then minInt will be changed to 3. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setMaximumSignificantDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMaximumSignificantDigits(kotlin.Int))`(`value:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **\[icu\]** **Rounding and Digit Limits:**Sets the maximum number of significant digits to be displayed. If the number of significant digits in the number exceeds this value, the number will be rounded according to the current rounding mode. For example, if maximum significant digits is 3 and the number is 12345, the number will be printed as "12300". If minimum and maximum integer, fraction, or significant digits conflict with each other, the most recently specified value is used. For example, if there is a formatter with minInt=5, and then you set maxInt=3, then minInt will be changed to 3. See #setRoundingIncrement and[setMaximumFractionDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMaximumFractionDigits(kotlin.Int))for two other ways of specifying rounding strategies. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setMinimumExponentDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMinimumExponentDigits(kotlin.Byte))`(`minExpDig:` `[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html)`)` <br /> **\[icu\]** **Scientific Notation:**Sets the minimum number of digits to be printed in the exponent. For example, if minimum exponent digits is 3, the number 123000 will be printed as "1.23E005". This setting corresponds to the number of zeros after the 'E' in a pattern string such as "0.00E000". <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setMinimumFractionDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMinimumFractionDigits(kotlin.Int))`(`value:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **Rounding and Digit Limits:**Sets the minimum number of digits to display after the decimal separator. If the number has fewer than this many digits, the number is padded with zeros. For example, if minimum fraction digits is 2, the number 123.4 will be printed as "123.40". Minimum integer and minimum and maximum fraction digits can be specified via the pattern string. For example, "#,#00.00#" has 2 minimum integer digits, 2 minimum fraction digits, and 3 maximum fraction digits. Note that it is not possible to specify maximum integer digits in the pattern except in scientific notation. If minimum and maximum integer, fraction, or significant digits conflict with each other, the most recently specified value is used. For example, if there is a formatter with minInt=5, and then you set maxInt=3, then minInt will be changed to 3. See #setRoundingIncrement and[setMaximumSignificantDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMaximumSignificantDigits(kotlin.Int))for two other ways of specifying rounding strategies. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setMinimumGroupingDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMinimumGroupingDigits(kotlin.Int))`(`number:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **\[icu\]** Sets the minimum number of digits that must be before the first grouping separator in order for the grouping separator to be printed. For example, if minimum grouping digits is set to 2, in*en-US*, 1234 will be printed as "1234" and 12345 will be printed as "12,345". Set the value to: - 1 to turn off minimum grouping digits. - MINIMUM_GROUPING_DIGITS_AUTO to display grouping using the default strategy for all locales. - MINIMUM_GROUPING_DIGITS_MIN2 to display grouping using locale defaults, except do not show grouping on values smaller than 10000 (such that there is a minimum of two digits before the first separator). <br /> <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setMinimumIntegerDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMinimumIntegerDigits(kotlin.Int))`(`value:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **Rounding and Digit Limits:**Sets the minimum number of digits to display before the decimal separator. If the number has fewer than this many digits, the number is padded with zeros. For example, if minimum integer digits is 3, the number 12.3 will be printed as "001.23". Minimum integer and minimum and maximum fraction digits can be specified via the pattern string. For example, "#,#00.00#" has 2 minimum integer digits, 2 minimum fraction digits, and 3 maximum fraction digits. Note that it is not possible to specify maximum integer digits in the pattern except in scientific notation. If minimum and maximum integer, fraction, or significant digits conflict with each other, the most recently specified value is used. For example, if there is a formatter with minInt=5, and then you set maxInt=3, then minInt will be changed to 3. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setMinimumSignificantDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMinimumSignificantDigits(kotlin.Int))`(`value:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **\[icu\]** **Rounding and Digit Limits:**Sets the minimum number of significant digits to be displayed. If the number of significant digits is less than this value, the number will be padded with zeros as necessary. For example, if minimum significant digits is 3 and the number is 1.2, the number will be printed as "1.20". If minimum and maximum integer, fraction, or significant digits conflict with each other, the most recently specified value is used. For example, if there is a formatter with minInt=5, and then you set maxInt=3, then minInt will be changed to 3. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setMultiplier](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMultiplier(kotlin.Int))`(`multiplier:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> Sets a number that will be used to multiply all numbers prior to formatting. For example, when formatting percents, a multiplier of 100 can be used. If a percent or permille sign is specified in the pattern, the multiplier is automatically set to 100 or 1000, respectively. If the number specified here is a power of 10, a more efficient code path will be used. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setNegativePrefix](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setNegativePrefix(kotlin.String))`(`prefix:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br /> **Affixes:** Sets the string to prepend to negative numbers. For example, if you set the value "#", then the number -123 will be formatted as "#123" in the locale*en-US*(overriding the implicit default '-' in the pattern). Using this method overrides the affix specified via the pattern, and unlike the pattern, the string given to this method will be interpreted literally WITHOUT locale symbol substitutions. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setNegativeSuffix](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setNegativeSuffix(kotlin.String))`(`suffix:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br /> **Affixes:** Sets the string to append to negative numbers. For example, if you set the value "#", then the number 123 will be formatted as "123#" in the locale*en-US*. Using this method overrides the affix specified via the pattern, and unlike the pattern, the string given to this method will be interpreted literally WITHOUT locale symbol substitutions. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setPadCharacter](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setPadCharacter(kotlin.Char))`(`padChar:` `[Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html)`)` <br /> **\[icu\]** **Padding:** Sets the character used to pad numbers that are narrower than the width specified in[setFormatWidth](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setFormatWidth(kotlin.Int)). In the pattern string, the padding character is the token that follows '\*' before or after the prefix or suffix. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setPadPosition](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setPadPosition(kotlin.Int))`(`padPos:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **\[icu\]** **Padding:** Sets the position where to insert the pad character when narrower than the width specified in[setFormatWidth](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setFormatWidth(kotlin.Int)). For example, consider the pattern "P123S" with padding width 8 and padding char "\*". The four positions are: - [DecimalFormat.PAD_BEFORE_PREFIX](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#PAD_BEFORE_PREFIX:kotlin.Int)⇒ "\*\*\*P123S" - [DecimalFormat.PAD_AFTER_PREFIX](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#PAD_AFTER_PREFIX:kotlin.Int)⇒ "P\*\*\*123S" - [DecimalFormat.PAD_BEFORE_SUFFIX](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#PAD_BEFORE_SUFFIX:kotlin.Int)⇒ "P123\*\*\*S" - [DecimalFormat.PAD_AFTER_SUFFIX](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#PAD_AFTER_SUFFIX:kotlin.Int)⇒ "P123S\*\*\*" <br /> <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setParseBigDecimal](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setParseBigDecimal(kotlin.Boolean))`(`value:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> Whether to make #parse prefer returning a[android.icu.math.BigDecimal](https://developer.android.com/reference/kotlin/android/icu/math/BigDecimal.html#)when possible. For strings corresponding to return values of Infinity, -Infinity, NaN, and -0.0, a Double will be returned even if ParseBigDecimal is enabled. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setParseCaseSensitive](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setParseCaseSensitive(kotlin.Boolean))`(`value:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> **\[icu\]**Specifies whether parsing should require cases to match in affixes, exponent separators, and currency codes. Case mapping is performed for each code point using android.icu.lang.UCharacter#foldCase. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setParseIntegerOnly](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setParseIntegerOnly(kotlin.Boolean))`(`parseIntegerOnly:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> **Parsing:**Sets whether to ignore the fraction part of a number when parsing (defaults to false). If a string contains a decimal point, parsing will stop before the decimal point. Note that determining whether a character is a decimal point depends on the locale. For example, in*en-US*, parsing the string "123.45" will return the number 123 and parse position 3. This is functionally equivalent to calling[setDecimalPatternMatchRequired](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setDecimalPatternMatchRequired(kotlin.Boolean))and a pattern without a decimal point. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setParseMaxDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setParseMaxDigits(kotlin.Int))`(`maxDigits:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setParseNoExponent](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setParseNoExponent(kotlin.Boolean))`(`value:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> **\[icu\]**Specifies whether to stop parsing when an exponent separator is encountered. For example, parses "123E4" to 123 (with parse position 3) instead of 1230000 (with parse position 5). <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setParseStrict](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setParseStrict(kotlin.Boolean))`(`parseStrict:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> **\[icu\]**Sets whether strict parsing is in effect. When this is true, the string is required to be a stronger match to the pattern than when lenient parsing is in effect. More specifically, the following conditions cause a parse failure relative to lenient mode (examples use the pattern "#,##0.#"): - The presence and position of special symbols, including currency, must match the pattern. '+123' fails (there is no plus sign in the pattern) - Leading or doubled grouping separators ',123' and '1,,234" fail - Groups of incorrect length when grouping is used '1,23' and '1234,567' fail, but '1234' passes - Grouping separators used in numbers followed by exponents '1,234E5' fails, but '1234E5' and '1,234E' pass ('E' is not an exponent when not followed by a number) When strict parsing is off, all grouping separators are ignored. This is the default behavior. <br /> <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setPositivePrefix](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setPositivePrefix(kotlin.String))`(`prefix:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br /> **Affixes:** Sets the string to prepend to positive numbers. For example, if you set the value "#", then the number 123 will be formatted as "#123" in the locale*en-US*. Using this method overrides the affix specified via the pattern, and unlike the pattern, the string given to this method will be interpreted literally WITHOUT locale symbol substitutions. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setPositiveSuffix](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setPositiveSuffix(kotlin.String))`(`suffix:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br /> **Affixes:** Sets the string to append to positive numbers. For example, if you set the value "#", then the number 123 will be formatted as "123#" in the locale*en-US*. Using this method overrides the affix specified via the pattern, and unlike the pattern, the string given to this method will be interpreted literally WITHOUT locale symbol substitutions. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setRoundingIncrement](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setRoundingIncrement(android.icu.math.BigDecimal))`(`increment:` `[BigDecimal](https://developer.android.com/reference/kotlin/android/icu/math/BigDecimal.html#)!`)` <br /> **\[icu\]** **Rounding and Digit Limits:** Overload of[setRoundingIncrement(java.math.BigDecimal)](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setRoundingIncrement(java.math.BigDecimal)). <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setRoundingIncrement](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setRoundingIncrement(kotlin.Double))`(`increment:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`)` <br /> **\[icu\]** **Rounding and Digit Limits:** Overload of[setRoundingIncrement(java.math.BigDecimal)](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setRoundingIncrement(java.math.BigDecimal)). <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setRoundingIncrement](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setRoundingIncrement(java.math.BigDecimal))`(`increment:` `[BigDecimal](https://developer.android.com/reference/kotlin/java/math/BigDecimal.html#)!`)` <br /> **\[icu\]** **Rounding and Digit Limits:**Sets an increment, or interval, to which numbers are rounded. For example, a rounding increment of 0.05 will cause the number 1.23 to be rounded to 1.25 in the default rounding mode. The rounding increment can be specified via the pattern string: for example, the pattern "#,##0.05" encodes a rounding increment of 0.05. The rounding increment is applied*after* any multipliers might take effect; for example, in scientific notation or when[setMultiplier](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMultiplier(kotlin.Int))is used. See[setMaximumFractionDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMaximumFractionDigits(kotlin.Int))and[setMaximumSignificantDigits](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setMaximumSignificantDigits(kotlin.Int))for two other ways of specifying rounding strategies. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setRoundingMode](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setRoundingMode(kotlin.Int))`(`roundingMode:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **Rounding and Digit Limits:** Sets the[RoundingMode](https://developer.android.com/reference/kotlin/java/math/RoundingMode.html#)used to round numbers. The default rounding mode is HALF_EVEN, which rounds decimals to their closest whole number, and rounds to the closest even number if at the midpoint. For more detail on rounding modes, see[the ICU User Guide](https://unicode-org.github.io/icu/userguide/format_parse/numbers/rounding-modes). For backwards compatibility, the rounding mode is specified as an int argument, which can be from either the constants in[BigDecimal](https://developer.android.com/reference/kotlin/android/icu/math/BigDecimal.html#)or the ordinal value of[RoundingMode](https://developer.android.com/reference/kotlin/java/math/RoundingMode.html#). The following two calls are functionally equivalent. ```kotlin df.setRoundingMode(BigDecimal.ROUND_CEILING); df.setRoundingMode(RoundingMode.CEILING.ordinal()); ``` <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setScientificNotation](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setScientificNotation(kotlin.Boolean))`(`useScientific:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> **\[icu\]** **Scientific Notation:** Sets whether this formatter should print in scientific (exponential) notation. For example, if scientific notation is enabled, the number 123000 will be printed as "1.23E5" in locale*en-US*. A locale-specific symbol is used as the exponent separator. Calling`df.setScientificNotation(true)`is functionally equivalent to calling`df.setMinimumExponentDigits(1)`. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setSecondaryGroupingSize](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setSecondaryGroupingSize(kotlin.Int))`(`width:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **\[icu\]** **Grouping:**Sets the secondary grouping size (distance between grouping separators after the first separator) used when formatting large numbers. In many south Asian locales, this is set to 2. For example, with primary grouping size 3 and secondary grouping size 2, the number 1234567 will be formatted as "12,34,567". Grouping size can also be specified in the pattern: for example, "#,##,##0" corresponds to a primary grouping size of 3 and a secondary grouping size of 2. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setSignAlwaysShown](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setSignAlwaysShown(kotlin.Boolean))`(`value:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> Sets whether to always shown the plus sign ('+' in*en*) on positive numbers. The rules in UTS #35 section 3.2.1 will be followed to ensure a locale-aware placement of the sign. More specifically, the following strategy will be used to place the plus sign: 1. *Patterns without a negative subpattern:*The locale's plus sign will be prepended to the positive prefix. 2. *Patterns with a negative subpattern without a '-' sign (e.g., accounting):*The locale's plus sign will be prepended to the positive prefix, as in case 1. 3. *Patterns with a negative subpattern that has a '-' sign:*The locale's plus sign will substitute the '-' in the negative subpattern. The positive subpattern will be unused. This method is designed to be used*instead of* applying a pattern containing an explicit plus sign, such as "+0;-0". The behavior when combining this method with explicit plus signs in the pattern is undefined. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                               | [setSignificantDigitsUsed](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#setSignificantDigitsUsed(kotlin.Boolean))`(`useSignificantDigits:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> **\[icu\]** **Rounding and Digit Limits:**Sets whether significant digits are to be used in rounding. Calling`df.setSignificantDigitsUsed(true)`is functionally equivalent to: ```kotlin df.setMinimumSignificantDigits(1); df.setMaximumSignificantDigits(6); ``` <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                          | [toLocalizedPattern](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#toLocalizedPattern())`()` <br /> Calls[toPattern](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#toPattern())and converts the string to localized notation. For more information on localized notation, see[applyLocalizedPattern](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#applyLocalizedPattern(kotlin.String)). This method is provided for backwards compatibility and should not be used in new projects. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                          | [toPattern](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#toPattern())`()` <br /> Serializes this formatter object to a decimal format pattern string. The result of this method is guaranteed to be*functionally*equivalent to the pattern string used to create this instance after incorporating values from the setter methods. For more information on decimal format pattern strings, see[UTS #35](http://unicode.org/reports/tr35/tr35-numbers.html#Number_Format_Patterns). **Important:** Not all properties are capable of being encoded in a pattern string. See a list of properties in[applyPattern](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#applyPattern(kotlin.String)). <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)                                           | [toString](https://developer.android.com/reference/kotlin/android/icu/text/DecimalFormat#toString())`()` <br /> Returns the default value of toString() with extra DecimalFormat-specific information appended to the end of the string. This extra information is intended for debugging purposes, and the format is not guaranteed to be stable. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | ||
| From class[NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat) |-------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                 | [format](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#format(android.icu.math.BigDecimal))`(`number:` `[BigDecimal](https://developer.android.com/reference/kotlin/android/icu/math/BigDecimal.html#)!`)` <br /> **\[icu\]**Convenience method to format an ICU BigDecimal. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                 | [format](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#format(android.icu.util.CurrencyAmount))`(`currAmt:` `[CurrencyAmount](https://developer.android.com/reference/kotlin/android/icu/util/CurrencyAmount.html#)!`)` <br /> **\[icu\]**Convenience method to format a CurrencyAmount. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                 | [format](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#format(kotlin.Double))`(`number:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`)` <br /> Specialization of format. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [StringBuffer](https://developer.android.com/reference/kotlin/java/lang/StringBuffer.html#)!                                                                      | [format](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#format(kotlin.Any,%20java.lang.StringBuffer,%20java.text.FieldPosition))`(`number:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)!`, `toAppendTo:` `[StringBuffer](https://developer.android.com/reference/kotlin/java/lang/StringBuffer.html#)!`, `pos:` `[FieldPosition](https://developer.android.com/reference/kotlin/java/text/FieldPosition.html#)!`)` <br /> Formats a number and appends the resulting text to the given string buffer.**\[icu\] Note:** recognizes`BigInteger`and`BigDecimal`objects. <br />                                                                                                                                                                                                                                                                                                                                                                | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                 | [format](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#format(java.math.BigDecimal))`(`number:` `[BigDecimal](https://developer.android.com/reference/kotlin/java/math/BigDecimal.html#)!`)` <br /> Convenience method to format a BigDecimal. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                 | [format](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#format(java.math.BigInteger))`(`number:` `[BigInteger](https://developer.android.com/reference/kotlin/java/math/BigInteger.html#)!`)` <br /> **\[icu\]**Convenience method to format a BigInteger. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                 | [format](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#format(kotlin.Long))`(`number:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` <br /> Specialization of format. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[Locale](https://developer.android.com/reference/kotlin/java/util/Locale.html#)!>! | [getAvailableLocales](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getAvailableLocales())`()` <br /> Returns the list of Locales for which NumberFormats are available. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | [DisplayContext](https://developer.android.com/reference/kotlin/android/icu/text/DisplayContext)!                                                                 | [getContext](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getContext(android.icu.text.DisplayContext.Type))`(`type:` `[DisplayContext.Type](https://developer.android.com/reference/kotlin/android/icu/text/DisplayContext.Type)!`)` <br /> **\[icu\]**Get the formatter's DisplayContext value for the specified DisplayContext.Type, such as CAPITALIZATION. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getCurrencyInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getCurrencyInstance())`()` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat. Returns a currency format for the current default`FORMAT`locale. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getCurrencyInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getCurrencyInstance(android.icu.util.ULocale))`(`inLocale:` `[ULocale](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.html#)!`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat.**\[icu\]**Returns a currency format for the specified locale. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getCurrencyInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getCurrencyInstance(java.util.Locale))`(`inLocale:` `[Locale](https://developer.android.com/reference/kotlin/java/util/Locale.html#)!`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat. Returns a currency format for the specified locale. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getInstance())`()` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat. Returns the default number format for the current default`FORMAT`locale. The default format is one of the styles provided by the other factory methods: getNumberInstance, getIntegerInstance, getCurrencyInstance or getPercentInstance. Exactly which one is locale-dependent. <br />                                                                                                                                                                                                                                                                                                                                                                                                        | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getInstance(android.icu.util.ULocale))`(`inLocale:` `[ULocale](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.html#)!`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat.**\[icu\]**Returns the default number format for the specified locale. The default format is one of the styles provided by the other factory methods: getNumberInstance, getCurrencyInstance or getPercentInstance. Exactly which one is locale-dependent. <br />                                                                                                                                                                                                                                                                                                | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getInstance(android.icu.util.ULocale,%20kotlin.Int))`(`desiredLocale:` `[ULocale](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.html#)!`, `choice:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat. Returns a specific style number format for a specific locale. <br />                                                                                                                                                                                                                                                                                                                                                                                 | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getInstance(kotlin.Int))`(`style:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat.**\[icu\]** Returns a specific style number format for default`FORMAT`locale. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getInstance(java.util.Locale))`(`inLocale:` `[Locale](https://developer.android.com/reference/kotlin/java/util/Locale.html#)!`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat. Returns the default number format for the specified locale. The default format is one of the styles provided by the other factory methods: getNumberInstance, getCurrencyInstance or getPercentInstance. Exactly which one is locale-dependent. <br />                                                                                                                                                                                                                                                                                                                           | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getInstance(java.util.Locale,%20kotlin.Int))`(`inLocale:` `[Locale](https://developer.android.com/reference/kotlin/java/util/Locale.html#)!`, `style:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat.**\[icu\]**Returns a specific style number format for a specific locale. <br />                                                                                                                                                                                                                                                                                                                                                                                              | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getIntegerInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getIntegerInstance())`()` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat. Returns an integer number format for the current default`FORMAT`locale. The returned number format is configured to round floating point numbers to the nearest integer using IEEE half-even rounding (see[ROUND_HALF_EVEN](https://developer.android.com/reference/kotlin/android/icu/math/BigDecimal.html#ROUND_HALF_EVEN:kotlin.Int)) for formatting, and to parse only the integer part of an input string (see[isParseIntegerOnly](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#isParseIntegerOnly())). <br />                                                                                                                              | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getIntegerInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getIntegerInstance(android.icu.util.ULocale))`(`inLocale:` `[ULocale](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.html#)!`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat.**\[icu\]** Returns an integer number format for the specified locale. The returned number format is configured to round floating point numbers to the nearest integer using IEEE half-even rounding (see[ROUND_HALF_EVEN](https://developer.android.com/reference/kotlin/android/icu/math/BigDecimal.html#ROUND_HALF_EVEN:kotlin.Int)) for formatting, and to parse only the integer part of an input string (see[isParseIntegerOnly](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#isParseIntegerOnly())). <br /> | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getIntegerInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getIntegerInstance(java.util.Locale))`(`inLocale:` `[Locale](https://developer.android.com/reference/kotlin/java/util/Locale.html#)!`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat. Returns an integer number format for the specified locale. The returned number format is configured to round floating point numbers to the nearest integer using IEEE half-even rounding (see[ROUND_HALF_EVEN](https://developer.android.com/reference/kotlin/android/icu/math/BigDecimal.html#ROUND_HALF_EVEN:kotlin.Int)) for formatting, and to parse only the integer part of an input string (see[isParseIntegerOnly](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#isParseIntegerOnly())). <br />                             | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getNumberInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getNumberInstance())`()` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat. Returns a general-purpose number format for the current default`FORMAT`locale. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getNumberInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getNumberInstance(android.icu.util.ULocale))`(`inLocale:` `[ULocale](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.html#)!`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat.**\[icu\]**Returns a general-purpose number format for the specified locale. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getNumberInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getNumberInstance(java.util.Locale))`(`inLocale:` `[Locale](https://developer.android.com/reference/kotlin/java/util/Locale.html#)!`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat. Returns a general-purpose number format for the specified locale. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                 | [getPattern](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getPattern(android.icu.util.ULocale,%20kotlin.Int))`(`forLocale:` `[ULocale](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.html#)!`, `choice:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> Returns the pattern for the provided locale and choice. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getPercentInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getPercentInstance())`()` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat. Returns a percentage format for the current default`FORMAT`locale. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getPercentInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getPercentInstance(android.icu.util.ULocale))`(`inLocale:` `[ULocale](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.html#)!`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat.**\[icu\]**Returns a percentage format for the specified locale. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getPercentInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getPercentInstance(java.util.Locale))`(`inLocale:` `[Locale](https://developer.android.com/reference/kotlin/java/util/Locale.html#)!`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat. Returns a percentage format for the specified locale. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getScientificInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getScientificInstance())`()` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat.**\[icu\]** Returns a scientific format for the current default`FORMAT`locale. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getScientificInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getScientificInstance(android.icu.util.ULocale))`(`inLocale:` `[ULocale](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.html#)!`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat.**\[icu\]**Returns a scientific format for the specified locale. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | [NumberFormat](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat)!                                                                     | [getScientificInstance](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#getScientificInstance(java.util.Locale))`(`inLocale:` `[Locale](https://developer.android.com/reference/kotlin/java/util/Locale.html#)!`)` <br /> **NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat.**\[icu\]**Returns a scientific format for the specified locale. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [Number](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html)!                                                                                 | [parse](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#parse(kotlin.String))`(`text:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br /> Parses text from the beginning of the given string to produce a number. The method might not use the entire text of the given string. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)!                                                                                       | [parseObject](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#parseObject(kotlin.String,%20java.text.ParsePosition))`(`source:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `parsePosition:` `[ParsePosition](https://developer.android.com/reference/kotlin/java/text/ParsePosition.html#)!`)` <br /> Parses text from a string to produce a number. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                      | [setContext](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat#setContext(android.icu.text.DisplayContext))`(`context:` `[DisplayContext](https://developer.android.com/reference/kotlin/android/icu/text/DisplayContext)!`)` <br /> **\[icu\]**Set a particular DisplayContext value in the formatter, such as CAPITALIZATION_FOR_STANDALONE. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | ||

## Public methods

### getInstance

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open static fun getInstance(
    locale: ULocale!, 
    style: CompactDecimalFormat.CompactStyle!
): CompactDecimalFormat!
```

**NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat. Creates a CompactDecimalFormat appropriate for a locale. The result may be affected by the number system in the locale, such as ar-u-nu-latn.

|                                                                             Parameters                                                                              ||
|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| `locale` | [ULocale](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.html#)!:the desired locale                                              |
| `style`  | [CompactDecimalFormat.CompactStyle](https://developer.android.com/reference/kotlin/android/icu/text/CompactDecimalFormat.CompactStyle)!:the compact style |

### getInstance

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open static fun getInstance(
    locale: Locale!, 
    style: CompactDecimalFormat.CompactStyle!
): CompactDecimalFormat!
```

**NOTE:** New users are strongly encouraged to use[NumberFormatter](https://developer.android.com/reference/kotlin/android/icu/number/NumberFormatter.html#)instead of NumberFormat. Creates a CompactDecimalFormat appropriate for a locale. The result may be affected by the number system in the locale, such as ar-u-nu-latn.

|                                                                             Parameters                                                                              ||
|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| `locale` | [Locale](https://developer.android.com/reference/kotlin/java/util/Locale.html#)!:the desired locale                                                       |
| `style`  | [CompactDecimalFormat.CompactStyle](https://developer.android.com/reference/kotlin/android/icu/text/CompactDecimalFormat.CompactStyle)!:the compact style |

### parse

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun parse(
    text: String!, 
    parsePosition: ParsePosition!
): Number!
```

Parsing is currently unsupported, and throws an UnsupportedOperationException.  

### parseCurrency

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun parseCurrency(
    text: CharSequence!, 
    parsePosition: ParsePosition!
): CurrencyAmount!
```

Parsing is currently unsupported, and throws an UnsupportedOperationException.

|                                                                                                                    Parameters                                                                                                                     ||
|--------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `text` | [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!:the text to parse                                                                                                                          |
| `pos`  | input-output position; on input, the position within text to match; must have 0 \<= pos.getIndex() \< text.length(); on output, the position after the last matched character. If the parse fails, the position in unchanged upon output. |

|                                                                     Return                                                                      ||
|---------------------------------------------------------------------------------------------------------|----------------------------------------|
| [CurrencyAmount](https://developer.android.com/reference/kotlin/android/icu/util/CurrencyAmount.html#)! | a CurrencyAmount, or null upon failure |