# DecimalFormatSymbols

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Constants](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#constants)\|[Ctors](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#pubctors)\|[Methods](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#inhmethods)  

# DecimalFormatSymbols

*** ** * ** ***

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

`
public


class
DecimalFormatSymbols
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


implements

`[Cloneable](https://developer.android.com/reference/java/lang/Cloneable)`,

`[Serializable](https://developer.android.com/reference/java/io/Serializable)`


`

|---|---------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.icu.text.DecimalFormatSymbols |

<br />

*** ** * ** ***

**\[icu enhancement\]** ICU's replacement for[DecimalFormatSymbols](https://developer.android.com/reference/java/text/DecimalFormatSymbols). Methods, fields, and other functionality specific to ICU are labeled '**\[icu\]** '. This class represents the set of symbols (such as the decimal separator, the grouping separator, and so on) needed by`DecimalFormat`to format numbers.`DecimalFormat`creates for itself an instance of`DecimalFormatSymbols`from its locale data. If you need to change any of these symbols, you can get the`DecimalFormatSymbols`object from your`DecimalFormat`and modify it.  
**See also:**

- [Locale](https://developer.android.com/reference/java/util/Locale)
- [DecimalFormat](https://developer.android.com/reference/android/icu/text/DecimalFormat)

## Summary

|                                                                                                                                                                                       ### Constants                                                                                                                                                                                        ||
|-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [CURRENCY_SPC_CURRENCY_MATCH](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#CURRENCY_SPC_CURRENCY_MATCH) **\[icu\]** Indicates the currency match pattern used in[getPatternForCurrencySpacing(int, boolean)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPatternForCurrencySpacing(int,%20boolean)).          |
| `int` | [CURRENCY_SPC_INSERT](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#CURRENCY_SPC_INSERT) **\[icu\]** Indicates the insertion value used in[getPatternForCurrencySpacing(int, boolean)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPatternForCurrencySpacing(int,%20boolean)).                                 |
| `int` | [CURRENCY_SPC_SURROUNDING_MATCH](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#CURRENCY_SPC_SURROUNDING_MATCH) **\[icu\]** Indicates the surrounding match pattern used in[getPatternForCurrencySpacing(int, boolean)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPatternForCurrencySpacing(int,%20boolean)). |

|                                                                                                                                                  ### Public constructors                                                                                                                                                   ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[DecimalFormatSymbols](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#DecimalFormatSymbols())`() ` Creates a DecimalFormatSymbols object for the default`FORMAT`locale.                                                                                                               |
| ` `[DecimalFormatSymbols](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#DecimalFormatSymbols(android.icu.util.ULocale))`(`[ULocale](https://developer.android.com/reference/android/icu/util/ULocale)` locale) ` **\[icu\]**Creates a DecimalFormatSymbols object for the given locale. |
| ` `[DecimalFormatSymbols](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#DecimalFormatSymbols(java.util.Locale))`(`[Locale](https://developer.android.com/reference/java/util/Locale)` locale) ` Creates a DecimalFormatSymbols object for the given locale.                             |

|                                                                                                                                                                                                                                                                                                                                                                                                                     ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                     ||
|-----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[Object](https://developer.android.com/reference/java/lang/Object)                                           | ` `[clone](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ` boolean`                                                                                                      | ` `[equals](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ` static `[DecimalFormatSymbols](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols) | ` `[forNumberingSystem](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#forNumberingSystem(android.icu.util.ULocale,%20android.icu.text.NumberingSystem))`(`[ULocale](https://developer.android.com/reference/android/icu/util/ULocale)` locale, `[NumberingSystem](https://developer.android.com/reference/android/icu/text/NumberingSystem)` ns) ` **\[icu\]** Returns a DecimalFormatSymbols instance for the given locale with digits and symbols corresponding to the given[NumberingSystem](https://developer.android.com/reference/android/icu/text/NumberingSystem).                                                                                                                                |
| ` static `[DecimalFormatSymbols](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols) | ` `[forNumberingSystem](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#forNumberingSystem(java.util.Locale,%20android.icu.text.NumberingSystem))`(`[Locale](https://developer.android.com/reference/java/util/Locale)` locale, `[NumberingSystem](https://developer.android.com/reference/android/icu/text/NumberingSystem)` ns) ` **\[icu\]** Returns a DecimalFormatSymbols instance for the given locale with digits and symbols corresponding to the given[NumberingSystem](https://developer.android.com/reference/android/icu/text/NumberingSystem).                                                                                                                                                 |
| ` static `[Locale[]](https://developer.android.com/reference/java/util/Locale)                                  | ` `[getAvailableLocales](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getAvailableLocales())`() ` Returns an array of all locales for which the`getInstance`methods of this class can return localized instances.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` static `[ULocale[]](https://developer.android.com/reference/android/icu/util/ULocale)                         | ` `[getAvailableULocales](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getAvailableULocales())`() ` **\[icu\]** Returns an array of all locales for which the`getInstance`methods of this class can return localized instances.                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` `[Currency](https://developer.android.com/reference/android/icu/util/Currency)                                | ` `[getCurrency](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getCurrency())`() ` Returns the currency symbol, for[DecimalFormatSymbols.getCurrency()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getCurrency())API compatibility only.                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getCurrencySymbol](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getCurrencySymbol())`() ` Returns the string denoting the local currency.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` char`                                                                                                         | ` `[getDecimalSeparator](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getDecimalSeparator())`() ` Returns the character used for decimal sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getDecimalSeparatorString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getDecimalSeparatorString())`() ` **\[icu\]**Returns the string used for decimal sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` char`                                                                                                         | ` `[getDigit](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getDigit())`() ` Returns the character used for a digit in a pattern.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ` `[String[]](https://developer.android.com/reference/java/lang/String)                                         | ` `[getDigitStrings](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getDigitStrings())`() ` **\[icu\]**Returns the array of strings used as digits, in order from 0 through 9                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ` char[]`                                                                                                       | ` `[getDigits](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getDigits())`() ` Returns the array of characters used as digits, in order from 0 through 9                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getExponentMultiplicationSign](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getExponentMultiplicationSign())`() ` Returns the multiplication sign                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getExponentSeparator](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getExponentSeparator())`() ` **\[icu\]**Returns the string used to separate the mantissa from the exponent.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` char`                                                                                                         | ` `[getGroupingSeparator](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getGroupingSeparator())`() ` Returns the character used for grouping separator.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getGroupingSeparatorString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getGroupingSeparatorString())`() ` **\[icu\]**Returns the string used for grouping separator.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getInfinity](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getInfinity())`() ` Returns the String used to represent infinity.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ` static `[DecimalFormatSymbols](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols) | ` `[getInstance](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getInstance())`() ` Returns a DecimalFormatSymbols instance for the default locale.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` static `[DecimalFormatSymbols](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols) | ` `[getInstance](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getInstance(java.util.Locale))`(`[Locale](https://developer.android.com/reference/java/util/Locale)` locale) ` Returns a DecimalFormatSymbols instance for the given locale.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` static `[DecimalFormatSymbols](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols) | ` `[getInstance](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getInstance(android.icu.util.ULocale))`(`[ULocale](https://developer.android.com/reference/android/icu/util/ULocale)` locale) ` Returns a DecimalFormatSymbols instance for the given locale.                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getInternationalCurrencySymbol](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getInternationalCurrencySymbol())`() ` Returns the international string denoting the local currency.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` `[Locale](https://developer.android.com/reference/java/util/Locale)                                           | ` `[getLocale](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getLocale())`() ` Returns the locale for which this object was constructed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` char`                                                                                                         | ` `[getMinusSign](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMinusSign())`() ` Returns the character used to represent minus sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getMinusSignString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMinusSignString())`() ` **\[icu\]**Returns the string used to represent minus sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ` char`                                                                                                         | ` `[getMonetaryDecimalSeparator](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMonetaryDecimalSeparator())`() ` Returns the monetary decimal separator.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getMonetaryDecimalSeparatorString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMonetaryDecimalSeparatorString())`() ` **\[icu\]**Returns the monetary decimal separator string.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` char`                                                                                                         | ` `[getMonetaryGroupingSeparator](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMonetaryGroupingSeparator())`() ` **\[icu\]**Returns the monetary grouping separator.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getMonetaryGroupingSeparatorString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMonetaryGroupingSeparatorString())`() ` **\[icu\]**Returns the monetary grouping separator.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getNaN](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getNaN())`() ` Returns the String used to represent NaN.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` char`                                                                                                         | ` `[getPadEscape](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPadEscape())`() ` **\[icu\]**Returns the character used to pad numbers out to a specified width.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getPatternForCurrencySpacing](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPatternForCurrencySpacing(int,%20boolean))`(int itemType, boolean beforeCurrency) ` **\[icu\]**Returns the desired currency spacing value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` char`                                                                                                         | ` `[getPatternSeparator](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPatternSeparator())`() ` Returns the character used to separate positive and negative subpatterns in a pattern.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ` char`                                                                                                         | ` `[getPerMill](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPerMill())`() ` Returns the character used for mille percent sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getPerMillString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPerMillString())`() ` **\[icu\]**Returns the string used for permille sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` char`                                                                                                         | ` `[getPercent](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPercent())`() ` Returns the character used for percent sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getPercentString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPercentString())`() ` **\[icu\]**Returns the string used for percent sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ` char`                                                                                                         | ` `[getPlusSign](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPlusSign())`() ` **\[icu\]**Returns the localized plus sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                           | ` `[getPlusSignString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPlusSignString())`() ` **\[icu\]**Returns the string used to represent plus sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ` char`                                                                                                         | ` `[getSignificantDigit](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getSignificantDigit())`() ` Returns the character used to represent a significant digit in a pattern.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ` `[ULocale](https://developer.android.com/reference/android/icu/util/ULocale)                                  | ` `[getULocale](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getULocale())`() ` Returns the locale for which this object was constructed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ` char`                                                                                                         | ` `[getZeroDigit](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getZeroDigit())`() ` Returns the character used for zero.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ` int`                                                                                                          | ` `[hashCode](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` void`                                                                                                         | ` `[setCurrency](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setCurrency(android.icu.util.Currency))`(`[Currency](https://developer.android.com/reference/android/icu/util/Currency)` currency) ` Sets the currency.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` void`                                                                                                         | ` `[setCurrencySymbol](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setCurrencySymbol(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` currency) ` Sets the string denoting the local currency.                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` void`                                                                                                         | ` `[setDecimalSeparator](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setDecimalSeparator(char))`(char decimalSeparator) ` Sets the character used for decimal sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ` void`                                                                                                         | ` `[setDecimalSeparatorString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setDecimalSeparatorString(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` decimalSeparatorString) ` **\[icu\]**Sets the string used for decimal sign.                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` void`                                                                                                         | ` `[setDigit](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setDigit(char))`(char digit) ` Sets the character used for a digit in a pattern.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ` void`                                                                                                         | ` `[setDigitStrings](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setDigitStrings(java.lang.String[]))`(`[String[]](https://developer.android.com/reference/java/lang/String)` digitStrings) ` **\[icu\]**Sets the array of strings used as digits, in order from 0 through 9 **Note:** When the input array of digit strings contains any strings represented by multiple Java chars, then[getDigits()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getDigits())will return the default digits ('0' - '9') and[getZeroDigit()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getZeroDigit())will return the default zero digit ('0'). |
| ` void`                                                                                                         | ` `[setExponentMultiplicationSign](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setExponentMultiplicationSign(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` exponentMultiplicationSign) ` Sets the multiplication sign                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` void`                                                                                                         | ` `[setExponentSeparator](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setExponentSeparator(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` exp) ` **\[icu\]**Sets the string used to separate the mantissa from the exponent.                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` void`                                                                                                         | ` `[setGroupingSeparator](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setGroupingSeparator(char))`(char groupingSeparator) ` Sets the character used for grouping separator.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` void`                                                                                                         | ` `[setGroupingSeparatorString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setGroupingSeparatorString(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` groupingSeparatorString) ` **\[icu\]**Sets the string used for grouping separator.                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ` void`                                                                                                         | ` `[setInfinity](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setInfinity(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` infinity) ` Sets the String used to represent infinity.                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` void`                                                                                                         | ` `[setInternationalCurrencySymbol](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setInternationalCurrencySymbol(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` currency) ` Sets the international string denoting the local currency.                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` void`                                                                                                         | ` `[setMinusSign](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setMinusSign(char))`(char minusSign) ` Sets the character used to represent minus sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` void`                                                                                                         | ` `[setMinusSignString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setMinusSignString(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` minusSignString) ` **\[icu\]**Sets the string used to represent minus sign.                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` void`                                                                                                         | ` `[setMonetaryDecimalSeparator](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setMonetaryDecimalSeparator(char))`(char sep) ` Sets the monetary decimal separator.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` void`                                                                                                         | ` `[setMonetaryDecimalSeparatorString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setMonetaryDecimalSeparatorString(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` sep) ` **\[icu\]**Sets the monetary decimal separator string.                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` void`                                                                                                         | ` `[setMonetaryGroupingSeparator](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setMonetaryGroupingSeparator(char))`(char sep) ` **\[icu\]**Sets the monetary grouping separator.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ` void`                                                                                                         | ` `[setMonetaryGroupingSeparatorString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setMonetaryGroupingSeparatorString(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` sep) ` **\[icu\]**Sets the monetary grouping separator string.                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` void`                                                                                                         | ` `[setNaN](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setNaN(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` NaN) ` Sets the String used to represent NaN.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` void`                                                                                                         | ` `[setPadEscape](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setPadEscape(char))`(char c) ` **\[icu\]**Sets the character used to pad numbers out to a specified width.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ` void`                                                                                                         | ` `[setPatternForCurrencySpacing](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setPatternForCurrencySpacing(int,%20boolean,%20java.lang.String))`(int itemType, boolean beforeCurrency, `[String](https://developer.android.com/reference/java/lang/String)` pattern) ` **\[icu\]**Sets the indicated currency spacing pattern or value.                                                                                                                                                                                                                                                                                                                                                                 |
| ` void`                                                                                                         | ` `[setPatternSeparator](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setPatternSeparator(char))`(char patternSeparator) ` Sets the character used to separate positive and negative subpatterns in a pattern.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` void`                                                                                                         | ` `[setPerMill](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setPerMill(char))`(char perMill) ` Sets the character used for mille percent sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` void`                                                                                                         | ` `[setPerMillString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setPerMillString(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` perMillString) ` **\[icu\]**Sets the string used for permille sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ` void`                                                                                                         | ` `[setPercent](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setPercent(char))`(char percent) ` Sets the character used for percent sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ` void`                                                                                                         | ` `[setPercentString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setPercentString(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` percentString) ` **\[icu\]**Sets the string used for percent sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` void`                                                                                                         | ` `[setPlusSign](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setPlusSign(char))`(char plus) ` **\[icu\]**Sets the localized plus sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` void`                                                                                                         | ` `[setPlusSignString](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setPlusSignString(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` plusSignString) ` **\[icu\]**Sets the localized plus sign string.                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ` void`                                                                                                         | ` `[setSignificantDigit](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setSignificantDigit(char))`(char sigDigit) ` Sets the character used to represent a significant digit in a pattern.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ` void`                                                                                                         | ` `[setZeroDigit](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setZeroDigit(char))`(char zeroDigit) ` Sets the character used for zero.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Constants

### CURRENCY_SPC_CURRENCY_MATCH

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

```
public static final int CURRENCY_SPC_CURRENCY_MATCH
```

**\[icu\]** Indicates the currency match pattern used in[getPatternForCurrencySpacing(int, boolean)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPatternForCurrencySpacing(int,%20boolean)).

<br />

Constant Value: 0 (0x00000000)  

### CURRENCY_SPC_INSERT

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

```
public static final int CURRENCY_SPC_INSERT
```

**\[icu\]** Indicates the insertion value used in[getPatternForCurrencySpacing(int, boolean)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPatternForCurrencySpacing(int,%20boolean)).

<br />

Constant Value: 2 (0x00000002)  

### CURRENCY_SPC_SURROUNDING_MATCH

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

```
public static final int CURRENCY_SPC_SURROUNDING_MATCH
```

**\[icu\]** Indicates the surrounding match pattern used in[getPatternForCurrencySpacing(int, boolean)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPatternForCurrencySpacing(int,%20boolean)).

<br />

Constant Value: 1 (0x00000001)

## Public constructors

### DecimalFormatSymbols

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

```
public DecimalFormatSymbols ()
```

Creates a DecimalFormatSymbols object for the default`FORMAT`locale.

<br />

**See also:**

- [ULocale.Category.FORMAT](https://developer.android.com/reference/android/icu/util/ULocale.Category#FORMAT)  

### DecimalFormatSymbols

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

```
public DecimalFormatSymbols (ULocale locale)
```

**\[icu\]**Creates a DecimalFormatSymbols object for the given locale.

<br />

|               Parameters               ||
|----------|------------------------------|
| `locale` | `ULocale`: the locale <br /> |

### DecimalFormatSymbols

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

```
public DecimalFormatSymbols (Locale locale)
```

Creates a DecimalFormatSymbols object for the given locale.

<br />

|              Parameters               ||
|----------|-----------------------------|
| `locale` | `Locale`: the locale <br /> |

## Public methods

### clone

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

```
public Object clone ()
```

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object`x`, the expression:
>
> ```
>  x.clone() != x
> ```
will be true, and that the expression:
>
> ```
>  x.clone().getClass() == x.getClass()
> ```
will be`true`, but these are not absolute requirements. While it is typically the case that:
>
> ```
>  x.clone().equals(x)
> ```
will be`true`, this is not an absolute requirement.

By convention, the returned object should be obtained by calling`super.clone`. If a class and all of its superclasses (except`Object`) obey this convention, it will be the case that`x.clone().getClass() == x.getClass()`.

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by`super.clone`before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by`super.clone`need to be modified.

<br />

|                                               Returns                                                ||
|--------------------------------------------------------------------|----------------------------------|
| [Object](https://developer.android.com/reference/java/lang/Object) | a clone of this instance. <br /> |

### equals

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

```
public boolean equals (Object obj)
```

Indicates whether some other object is "equal to" this one.

The`equals`method implements an equivalence relation on non-null object references:

- It is*reflexive* : for any non-null reference value`x`,`x.equals(x)`should return`true`.
- It is*symmetric* : for any non-null reference values`x`and`y`,`x.equals(y)`should return`true`if and only if`y.equals(x)`returns`true`.
- It is*transitive* : for any non-null reference values`x`,`y`, and`z`, if`x.equals(y)`returns`true`and`y.equals(z)`returns`true`, then`x.equals(z)`should return`true`.
- It is*consistent* : for any non-null reference values`x`and`y`, multiple invocations of`x.equals(y)`consistently return`true`or consistently return`false`, provided no information used in`equals`comparisons on the objects is modified.
- For any non-null reference value`x`,`x.equals(null)`should return`false`.

An equivalence relation partitions the elements it operates on into*equivalence classes*; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

<br />

|                             Parameters                              ||
|-------|--------------------------------------------------------------|
| `obj` | `Object`: the reference object with which to compare. <br /> |

|                                         Returns                                          ||
|-----------|-------------------------------------------------------------------------------|
| `boolean` | `true`if this object is the same as the obj argument;`false`otherwise. <br /> |

### forNumberingSystem

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

```
public static DecimalFormatSymbols forNumberingSystem (ULocale locale, 
                NumberingSystem ns)
```

**\[icu\]** Returns a DecimalFormatSymbols instance for the given locale with digits and symbols corresponding to the given[NumberingSystem](https://developer.android.com/reference/android/icu/text/NumberingSystem).

This method behaves equivalently to[getInstance()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getInstance())called with a locale having a "numbers=xxxx" keyword specifying the numbering system by name.

In this method, the NumberingSystem argument will be used even if the locale has its own "numbers=xxxx" keyword.

<br />

|                        Parameters                         ||
|----------|-------------------------------------------------|
| `locale` | `ULocale`: the locale. <br />                   |
| `ns`     | `NumberingSystem`: the numbering system. <br /> |

|                                                                    Returns                                                                     ||
|-------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [DecimalFormatSymbols](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols) | A DecimalFormatSymbols instance. <br /> |

### forNumberingSystem

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

```
public static DecimalFormatSymbols forNumberingSystem (Locale locale, 
                NumberingSystem ns)
```

**\[icu\]** Returns a DecimalFormatSymbols instance for the given locale with digits and symbols corresponding to the given[NumberingSystem](https://developer.android.com/reference/android/icu/text/NumberingSystem).

This method behaves equivalently to[getInstance()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getInstance())called with a locale having a "numbers=xxxx" keyword specifying the numbering system by name.

In this method, the NumberingSystem argument will be used even if the locale has its own "numbers=xxxx" keyword.

<br />

|                        Parameters                         ||
|----------|-------------------------------------------------|
| `locale` | `Locale`: the locale. <br />                    |
| `ns`     | `NumberingSystem`: the numbering system. <br /> |

|                                                                    Returns                                                                     ||
|-------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [DecimalFormatSymbols](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols) | A DecimalFormatSymbols instance. <br /> |

### getAvailableLocales

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

```
public static Locale[] getAvailableLocales ()
```

Returns an array of all locales for which the`getInstance`methods of this class can return localized instances.

**Note:** Unlike`java.text.DecimalFormatSymbols#getAvailableLocales`, this method simply returns the array of`Locale`s available for this class. ICU currently does not support`DecimalFormatSymbolsProvider`, which was introduced in Java 6.

<br />

|                                                                               Returns                                                                               ||
|----------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|
| [Locale[]](https://developer.android.com/reference/java/util/Locale) | An array of`Locale`s for which localized`DecimalFormatSymbols`instances are available. <br /> |

### getAvailableULocales

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

```
public static ULocale[] getAvailableULocales ()
```

**\[icu\]** Returns an array of all locales for which the`getInstance`methods of this class can return localized instances.

**Note:** Unlike`java.text.DecimalFormatSymbols#getAvailableLocales`, this method simply returns the array of`ULocale`s available in this class. ICU currently does not support`DecimalFormatSymbolsProvider`, which was introduced in Java 6.

<br />

|                                                                                    Returns                                                                                    ||
|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|
| [ULocale[]](https://developer.android.com/reference/android/icu/util/ULocale) | An array of`ULocale`s for which localized`DecimalFormatSymbols`instances are available. <br /> |

### getCurrency

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

```
public Currency getCurrency ()
```

Returns the currency symbol, for[DecimalFormatSymbols.getCurrency()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getCurrency())API compatibility only. ICU clients should use the Currency API directly.

<br />

|                                                     Returns                                                      ||
|-------------------------------------------------------------------------------|-----------------------------------|
| [Currency](https://developer.android.com/reference/android/icu/util/Currency) | the currency used, or null <br /> |

### getCurrencySymbol

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

```
public String getCurrencySymbol ()
```

Returns the string denoting the local currency.

<br />

|                                                Returns                                                ||
|--------------------------------------------------------------------|-----------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the local currency String. <br /> |

### getDecimalSeparator

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

```
public char getDecimalSeparator ()
```

Returns the character used for decimal sign. Different for French, etc.

<br />

##### API Note:

- **Discouraged:** ICU 58 use[getDecimalSeparatorString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getDecimalSeparatorString())instead.

|               Returns                ||
|--------|------------------------------|
| `char` | the decimal character <br /> |

### getDecimalSeparatorString

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

```
public String getDecimalSeparatorString ()
```

**\[icu\]**Returns the string used for decimal sign.

<br />

|                                              Returns                                               ||
|--------------------------------------------------------------------|--------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the decimal sign string <br /> |

**See also:**

- [setDecimalSeparatorString(String)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setDecimalSeparatorString(java.lang.String))  

### getDigit

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

```
public char getDigit ()
```

Returns the character used for a digit in a pattern.

<br />

|                  Returns                   ||
|--------|------------------------------------|
| `char` | the digit pattern character <br /> |

### getDigitStrings

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

```
public String[] getDigitStrings ()
```

**\[icu\]**Returns the array of strings used as digits, in order from 0 through 9

<br />

|                                                   Returns                                                   ||
|----------------------------------------------------------------------|---------------------------------------|
| [String[]](https://developer.android.com/reference/java/lang/String) | The array of ten digit strings <br /> |

**See also:**

- [setDigitStrings(String[])](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setDigitStrings(java.lang.String[]))  

### getDigits

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

```
public char[] getDigits ()
```

Returns the array of characters used as digits, in order from 0 through 9

<br />

##### API Note:

- **Discouraged:** ICU 58 use[getDigitStrings()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getDigitStrings())instead.

|          Returns           ||
|----------|------------------|
| `char[]` | The array <br /> |

**See also:**

- [getDigitStrings()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getDigitStrings())  

### getExponentMultiplicationSign

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

```
public String getExponentMultiplicationSign ()
```

Returns the multiplication sign

<br />

|                                  Returns                                   ||
|--------------------------------------------------------------------|--------|
| [String](https://developer.android.com/reference/java/lang/String) | <br /> |

### getExponentSeparator

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

```
public String getExponentSeparator ()
```

**\[icu\]**Returns the string used to separate the mantissa from the exponent. Examples: "x10\^" for 1.23x10\^4, "E" for 1.23E4.

<br />

|                                                                          Returns                                                                           ||
|--------------------------------------------------------------------|----------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the localized exponent symbol, used in localized patterns and formatted strings <br /> |

**See also:**

- [setExponentSeparator(String)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setExponentSeparator(java.lang.String))  

### getGroupingSeparator

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

```
public char getGroupingSeparator ()
```

Returns the character used for grouping separator. Different for French, etc.

<br />

##### API Note:

- **Discouraged:** ICU 58 use[getGroupingSeparatorString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getGroupingSeparatorString())instead.

|                Returns                 ||
|--------|--------------------------------|
| `char` | the thousands character <br /> |

### getGroupingSeparatorString

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

```
public String getGroupingSeparatorString ()
```

**\[icu\]**Returns the string used for grouping separator. Different for French, etc.

<br />

|                                                 Returns                                                  ||
|--------------------------------------------------------------------|--------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the grouping separator string <br /> |

**See also:**

- [setGroupingSeparatorString(String)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setGroupingSeparatorString(java.lang.String))  

### getInfinity

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

```
public String getInfinity ()
```

Returns the String used to represent infinity. Almost always left unchanged.

<br />

|                                            Returns                                             ||
|--------------------------------------------------------------------|----------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the Infinity string <br /> |

### getInstance

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

```
public static DecimalFormatSymbols getInstance ()
```

Returns a DecimalFormatSymbols instance for the default locale.

**Note:** Unlike`java.text.DecimalFormatSymbols#getInstance`, this method simply returns`new android.icu.text.DecimalFormatSymbols()`. ICU currently does not support`DecimalFormatSymbolsProvider`, which was introduced in Java 6.

<br />

|                                                                    Returns                                                                     ||
|-------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [DecimalFormatSymbols](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols) | A DecimalFormatSymbols instance. <br /> |

### getInstance

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

```
public static DecimalFormatSymbols getInstance (Locale locale)
```

Returns a DecimalFormatSymbols instance for the given locale.

**Note:** Unlike`java.text.DecimalFormatSymbols#getInstance`, this method simply returns`new android.icu.text.DecimalFormatSymbols(locale)`. ICU currently does not support`DecimalFormatSymbolsProvider`, which was introduced in Java 6.

<br />

|               Parameters               ||
|----------|------------------------------|
| `locale` | `Locale`: the locale. <br /> |

|                                                                    Returns                                                                     ||
|-------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [DecimalFormatSymbols](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols) | A DecimalFormatSymbols instance. <br /> |

### getInstance

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

```
public static DecimalFormatSymbols getInstance (ULocale locale)
```

Returns a DecimalFormatSymbols instance for the given locale.

**Note:** Unlike`java.text.DecimalFormatSymbols#getInstance`, this method simply returns`new android.icu.text.DecimalFormatSymbols(locale)`. ICU currently does not support`DecimalFormatSymbolsProvider`, which was introduced in Java 6.

<br />

|               Parameters                ||
|----------|-------------------------------|
| `locale` | `ULocale`: the locale. <br /> |

|                                                                    Returns                                                                     ||
|-------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [DecimalFormatSymbols](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols) | A DecimalFormatSymbols instance. <br /> |

### getInternationalCurrencySymbol

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

```
public String getInternationalCurrencySymbol ()
```

Returns the international string denoting the local currency.

<br />

|                                                             Returns                                                             ||
|--------------------------------------------------------------------|-------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the international string denoting the local currency <br /> |

### getLocale

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

```
public Locale getLocale ()
```

Returns the locale for which this object was constructed.

<br />

|                                                           Returns                                                           ||
|--------------------------------------------------------------------|---------------------------------------------------------|
| [Locale](https://developer.android.com/reference/java/util/Locale) | the locale for which this object was constructed <br /> |

### getMinusSign

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

```
public char getMinusSign ()
```

Returns the character used to represent minus sign. If no explicit negative format is specified, one is formed by prefixing minusSign to the positive format.

<br />

##### API Note:

- **Discouraged:** ICU 58 use[getMinusSignString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMinusSignString())instead.

|                 Returns                 ||
|--------|---------------------------------|
| `char` | the minus sign character <br /> |

### getMinusSignString

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

```
public String getMinusSignString ()
```

**\[icu\]**Returns the string used to represent minus sign.

<br />

|                                             Returns                                              ||
|--------------------------------------------------------------------|------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the minus sign string <br /> |

**See also:**

- [setMinusSignString(String)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setMinusSignString(java.lang.String))  

### getMonetaryDecimalSeparator

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

```
public char getMonetaryDecimalSeparator ()
```

Returns the monetary decimal separator.

<br />

##### API Note:

- **Discouraged:** ICU 58 use[getMonetaryDecimalSeparatorString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMonetaryDecimalSeparatorString())instead.

|                         Returns                         ||
|--------|-------------------------------------------------|
| `char` | the monetary decimal separator character <br /> |

### getMonetaryDecimalSeparatorString

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

```
public String getMonetaryDecimalSeparatorString ()
```

**\[icu\]**Returns the monetary decimal separator string.

<br />

|                                                     Returns                                                      ||
|--------------------------------------------------------------------|----------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the monetary decimal separator string <br /> |

**See also:**

- [setMonetaryDecimalSeparatorString(String)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setMonetaryDecimalSeparatorString(java.lang.String))  

### getMonetaryGroupingSeparator

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

```
public char getMonetaryGroupingSeparator ()
```

**\[icu\]**Returns the monetary grouping separator.

<br />

##### API Note:

- **Discouraged:** ICU 58 use[getMonetaryGroupingSeparatorString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMonetaryGroupingSeparatorString())instead.

|                         Returns                          ||
|--------|--------------------------------------------------|
| `char` | the monetary grouping separator character <br /> |

### getMonetaryGroupingSeparatorString

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

```
public String getMonetaryGroupingSeparatorString ()
```

**\[icu\]**Returns the monetary grouping separator.

<br />

|                                                      Returns                                                      ||
|--------------------------------------------------------------------|-----------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the monetary grouping separator string <br /> |

**See also:**

- [setMonetaryGroupingSeparatorString(String)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setMonetaryGroupingSeparatorString(java.lang.String))  

### getNaN

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

```
public String getNaN ()
```

Returns the String used to represent NaN. Almost always left unchanged.

<br />

|                                          Returns                                          ||
|--------------------------------------------------------------------|-----------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the NaN String <br /> |

### getPadEscape

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

```
public char getPadEscape ()
```

**\[icu\]** Returns the character used to pad numbers out to a specified width. This is not the pad character itself; rather, it is the special pattern character*preceding*the pad character. In the pattern "\*_#,##0", '\*' is the pad escape, and '_' is the pad character.

<br />

|           Returns            ||
|--------|----------------------|
| `char` | the character <br /> |

**See also:**

- [setPadEscape(char)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setPadEscape(char))
- [DecimalFormat.getFormatWidth()](https://developer.android.com/reference/android/icu/text/DecimalFormat#getFormatWidth())
- [DecimalFormat.getPadPosition()](https://developer.android.com/reference/android/icu/text/DecimalFormat#getPadPosition())
- [DecimalFormat.getPadCharacter()](https://developer.android.com/reference/android/icu/text/DecimalFormat#getPadCharacter())  

### getPatternForCurrencySpacing

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

```
public String getPatternForCurrencySpacing (int itemType, 
                boolean beforeCurrency)
```

**\[icu\]**Returns the desired currency spacing value. Original values come from ICU's CLDR data based on the locale provided during construction, and can be null. These values govern what and when text is inserted between a currency code/name/symbol and the currency amount when formatting money.

For more information, see[UTS#35 section 5.10.2](http://www.unicode.org/reports/tr35/#Currencies).

<br />

|                                                        Parameters                                                         ||
|------------------|---------------------------------------------------------------------------------------------------------|
| `itemType`       | `int`: one of CURRENCY_SPC_CURRENCY_MATCH, CURRENCY_SPC_SURROUNDING_MATCH or CURRENCY_SPC_INSERT <br /> |
| `beforeCurrency` | `boolean`: true to get the`beforeCurrency`values, false to get the`afterCurrency`values. <br />         |

|                                            Returns                                             ||
|--------------------------------------------------------------------|----------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the value, or null. <br /> |

**See also:**

- [setPatternForCurrencySpacing(int, boolean, String)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setPatternForCurrencySpacing(int,%20boolean,%20java.lang.String))  

### getPatternSeparator

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

```
public char getPatternSeparator ()
```

Returns the character used to separate positive and negative subpatterns in a pattern.

<br />

|                    Returns                     ||
|--------|----------------------------------------|
| `char` | the pattern separator character <br /> |

### getPerMill

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

```
public char getPerMill ()
```

Returns the character used for mille percent sign. Different for Arabic, etc.

<br />

##### API Note:

- **Discouraged:** ICU 58 use[getPerMillString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPerMillString())instead.

|                  Returns                   ||
|--------|------------------------------------|
| `char` | the mille percent character <br /> |

### getPerMillString

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

```
public String getPerMillString ()
```

**\[icu\]**Returns the string used for permille sign.

<br />

|                                            Returns                                             ||
|--------------------------------------------------------------------|----------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the permille string <br /> |

**See also:**

- [setPerMillString(String)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setPerMillString(java.lang.String))  

### getPercent

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

```
public char getPercent ()
```

Returns the character used for percent sign. Different for Arabic, etc.

<br />

##### API Note:

- **Discouraged:** ICU 58 use[getPercentString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPercentString())instead.

|               Returns                ||
|--------|------------------------------|
| `char` | the percent character <br /> |

### getPercentString

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

```
public String getPercentString ()
```

**\[icu\]**Returns the string used for percent sign.

<br />

|                                            Returns                                            ||
|--------------------------------------------------------------------|---------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the percent string <br /> |

**See also:**

- [setPercentString(String)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setPercentString(java.lang.String))  

### getPlusSign

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

```
public char getPlusSign ()
```

**\[icu\]**Returns the localized plus sign.

<br />

##### API Note:

- **Discouraged:** ICU 58 use[getPlusSignString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPlusSignString())instead.

|                                    Returns                                     ||
|--------|------------------------------------------------------------------------|
| `char` | the plus sign, used in localized patterns and formatted strings <br /> |

**See also:**

- [setPlusSign(char)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setPlusSign(char))
- [setMinusSign(char)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setMinusSign(char))
- [getMinusSign()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMinusSign())  

### getPlusSignString

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

```
public String getPlusSignString ()
```

**\[icu\]**Returns the string used to represent plus sign.

<br />

|                                             Returns                                             ||
|--------------------------------------------------------------------|-----------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the plus sign string <br /> |

### getSignificantDigit

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

```
public char getSignificantDigit ()
```

Returns the character used to represent a significant digit in a pattern.

<br />

|                        Returns                         ||
|--------|------------------------------------------------|
| `char` | the significant digit pattern character <br /> |

### getULocale

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

```
public ULocale getULocale ()
```

Returns the locale for which this object was constructed.

<br />

|                                                               Returns                                                                ||
|-----------------------------------------------------------------------------|---------------------------------------------------------|
| [ULocale](https://developer.android.com/reference/android/icu/util/ULocale) | the locale for which this object was constructed <br /> |

### getZeroDigit

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

```
public char getZeroDigit ()
```

Returns the character used for zero. Different for Arabic, etc.

<br />

##### API Note:

- **Discouraged:** ICU 58 use[getDigitStrings()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getDigitStrings())instead.

|           Returns            ||
|--------|----------------------|
| `char` | the character <br /> |

### hashCode

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

```
public int hashCode ()
```

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by[HashMap](https://developer.android.com/reference/java/util/HashMap).

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/java/lang/Object#equals(java.lang.Object))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/java/lang/Object#equals(java.lang.Object))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 />

<br />

|                     Returns                      ||
|-------|-------------------------------------------|
| `int` | a hash code value for this object. <br /> |

### setCurrency

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

```
public void setCurrency (Currency currency)
```

Sets the currency.

**Note:**ICU does not use the DecimalFormatSymbols for the currency any more. This API is present for API compatibility only.

This also sets the currency symbol attribute to the currency's symbol in the DecimalFormatSymbols' locale, and the international currency symbol attribute to the currency's ISO 4217 currency code.

<br />

|                         Parameters                         ||
|------------|------------------------------------------------|
| `currency` | `Currency`: the new currency to be used <br /> |

|                                                       Throws                                                        ||
|------------------------------------------------------------------------------------------------|---------------------|
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException) | if`currency`is null |

**See also:**

- [setCurrencySymbol(String)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setCurrencySymbol(java.lang.String))
- [setInternationalCurrencySymbol(String)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setInternationalCurrencySymbol(java.lang.String))  

### setCurrencySymbol

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

```
public void setCurrencySymbol (String currency)
```

Sets the string denoting the local currency.

<br />

|                       Parameters                        ||
|------------|---------------------------------------------|
| `currency` | `String`: the local currency String. <br /> |

### setDecimalSeparator

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

```
public void setDecimalSeparator (char decimalSeparator)
```

Sets the character used for decimal sign. Different for French, etc.

<br />

|                        Parameters                        ||
|--------------------|--------------------------------------|
| `decimalSeparator` | `char`: the decimal character <br /> |

### setDecimalSeparatorString

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

```
public void setDecimalSeparatorString (String decimalSeparatorString)
```

**\[icu\]**Sets the string used for decimal sign.

**Note:** When the input decimal separator String is represented by multiple Java chars, then[getDecimalSeparator()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getDecimalSeparator())will return the default decimal separator character ('.').

<br />

|                             Parameters                             ||
|--------------------------|------------------------------------------|
| `decimalSeparatorString` | `String`: the decimal sign string <br /> |

|                                                               Throws                                                               ||
|------------------------------------------------------------------------------------------------|------------------------------------|
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException) | if`decimalSeparatorString`is null. |

**See also:**

- [getDecimalSeparatorString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getDecimalSeparatorString())  

### setDigit

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

```
public void setDigit (char digit)
```

Sets the character used for a digit in a pattern.

<br />

|                     Parameters                      ||
|---------|--------------------------------------------|
| `digit` | `char`: the digit pattern character <br /> |

### setDigitStrings

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

```
public void setDigitStrings (String[] digitStrings)
```

**\[icu\]**Sets the array of strings used as digits, in order from 0 through 9

**Note:**

When the input array of digit strings contains any strings represented by multiple Java chars, then[getDigits()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getDigits())will return the default digits ('0' - '9') and[getZeroDigit()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getZeroDigit())will return the default zero digit ('0').

<br />

|                                                Parameters                                                ||
|----------------|------------------------------------------------------------------------------------------|
| `digitStrings` | `String`: The array of digit strings. The length of the array must be exactly 10. <br /> |

|                                                                    Throws                                                                     ||
|--------------------------------------------------------------------------------------------------------|---------------------------------------|
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException)         | if the`digitStrings`is null.          |
| [IllegalArgumentException](https://developer.android.com/reference/java/lang/IllegalArgumentException) | if the length of the array is not 10. |

**See also:**

- [getDigitStrings()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getDigitStrings())  

### setExponentMultiplicationSign

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

```
public void setExponentMultiplicationSign (String exponentMultiplicationSign)
```

Sets the multiplication sign

<br />

|                  Parameters                   ||
|------------------------------|-----------------|
| `exponentMultiplicationSign` | `String` <br /> |

### setExponentSeparator

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

```
public void setExponentSeparator (String exp)
```

**\[icu\]**Sets the string used to separate the mantissa from the exponent. Examples: "x10\^" for 1.23x10\^4, "E" for 1.23E4.

<br />

|                                               Parameters                                                ||
|-------|--------------------------------------------------------------------------------------------------|
| `exp` | `String`: the localized exponent symbol, used in localized patterns and formatted strings <br /> |

**See also:**

- [getExponentSeparator()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getExponentSeparator())  

### setGroupingSeparator

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

```
public void setGroupingSeparator (char groupingSeparator)
```

Sets the character used for grouping separator. Different for French, etc.

<br />

|                         Parameters                          ||
|---------------------|----------------------------------------|
| `groupingSeparator` | `char`: the thousands character <br /> |

**See also:**

- [setGroupingSeparatorString(String)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setGroupingSeparatorString(java.lang.String))  

### setGroupingSeparatorString

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

```
public void setGroupingSeparatorString (String groupingSeparatorString)
```

**\[icu\]**Sets the string used for grouping separator.

**Note:** When the input grouping separator String is represented by multiple Java chars, then[getGroupingSeparator()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getGroupingSeparator())will return the default grouping separator character (',').

<br />

|                                Parameters                                 ||
|---------------------------|------------------------------------------------|
| `groupingSeparatorString` | `String`: the grouping separator string <br /> |

|                                                               Throws                                                                ||
|------------------------------------------------------------------------------------------------|-------------------------------------|
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException) | if`groupingSeparatorString`is null. |

**See also:**

- [getGroupingSeparatorString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getGroupingSeparatorString())  

### setInfinity

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

```
public void setInfinity (String infinity)
```

Sets the String used to represent infinity. Almost always left unchanged.

<br />

|                    Parameters                    ||
|------------|--------------------------------------|
| `infinity` | `String`: the Infinity String <br /> |

### setInternationalCurrencySymbol

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

```
public void setInternationalCurrencySymbol (String currency)
```

Sets the international string denoting the local currency.

<br />

|                                     Parameters                                     ||
|------------|------------------------------------------------------------------------|
| `currency` | `String`: the international string denoting the local currency. <br /> |

### setMinusSign

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

```
public void setMinusSign (char minusSign)
```

Sets the character used to represent minus sign. If no explicit negative format is specified, one is formed by prefixing minusSign to the positive format.

<br />

|                      Parameters                      ||
|-------------|-----------------------------------------|
| `minusSign` | `char`: the minus sign character <br /> |

### setMinusSignString

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

```
public void setMinusSignString (String minusSignString)
```

**\[icu\]**Sets the string used to represent minus sign.

**Note:** When the input minus sign String is represented by multiple Java chars, then[getMinusSign()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMinusSign())will return the default minus sign character ('-').

<br />

|                        Parameters                         ||
|-------------------|----------------------------------------|
| `minusSignString` | `String`: the minus sign string <br /> |

|                                                           Throws                                                            ||
|------------------------------------------------------------------------------------------------|-----------------------------|
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException) | if`minusSignString`is null. |

**See also:**

- [getGroupingSeparatorString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getGroupingSeparatorString())  

### setMonetaryDecimalSeparator

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

```
public void setMonetaryDecimalSeparator (char sep)
```

Sets the monetary decimal separator.

<br />

|                           Parameters                           ||
|-------|---------------------------------------------------------|
| `sep` | `char`: the monetary decimal separator character <br /> |

### setMonetaryDecimalSeparatorString

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

```
public void setMonetaryDecimalSeparatorString (String sep)
```

**\[icu\]**Sets the monetary decimal separator string.

**Note:** When the input monetary decimal separator String is represented by multiple Java chars, then[getMonetaryDecimalSeparatorString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMonetaryDecimalSeparatorString())will return the default monetary decimal separator character ('.').

<br />

|                          Parameters                           ||
|-------|--------------------------------------------------------|
| `sep` | `String`: the monetary decimal separator string <br /> |

|                                                     Throws                                                      ||
|------------------------------------------------------------------------------------------------|-----------------|
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException) | if`sep`is null. |

**See also:**

- [getMonetaryDecimalSeparatorString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMonetaryDecimalSeparatorString())  

### setMonetaryGroupingSeparator

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

```
public void setMonetaryGroupingSeparator (char sep)
```

**\[icu\]**Sets the monetary grouping separator.

<br />

|                           Parameters                            ||
|-------|----------------------------------------------------------|
| `sep` | `char`: the monetary grouping separator character <br /> |

### setMonetaryGroupingSeparatorString

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

```
public void setMonetaryGroupingSeparatorString (String sep)
```

**\[icu\]**Sets the monetary grouping separator string.

**Note:** When the input grouping separator String is represented by multiple Java chars, then[getMonetaryGroupingSeparator()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMonetaryGroupingSeparator())will return the default monetary grouping separator character (',').

<br />

|                           Parameters                           ||
|-------|---------------------------------------------------------|
| `sep` | `String`: the monetary grouping separator string <br /> |

|                                                     Throws                                                      ||
|------------------------------------------------------------------------------------------------|-----------------|
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException) | if`sep`is null. |

**See also:**

- [getMonetaryGroupingSeparatorString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMonetaryGroupingSeparatorString())  

### setNaN

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

```
public void setNaN (String NaN)
```

Sets the String used to represent NaN. Almost always left unchanged.

<br />

|               Parameters               ||
|-------|---------------------------------|
| `NaN` | `String`: the NaN String <br /> |

### setPadEscape

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

```
public void setPadEscape (char c)
```

**\[icu\]** Sets the character used to pad numbers out to a specified width. This is not the pad character itself; rather, it is the special pattern character*preceding*the pad character. In the pattern "\*_#,##0", '\*' is the pad escape, and '_' is the pad character.

<br />

|     Parameters     ||
|-----|---------------|
| `c` | `char` <br /> |

**See also:**

- [getPadEscape()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPadEscape())
- [DecimalFormat.setFormatWidth(int)](https://developer.android.com/reference/android/icu/text/DecimalFormat#setFormatWidth(int))
- [DecimalFormat.setPadPosition(int)](https://developer.android.com/reference/android/icu/text/DecimalFormat#setPadPosition(int))
- [DecimalFormat.setPadCharacter(char)](https://developer.android.com/reference/android/icu/text/DecimalFormat#setPadCharacter(char))  

### setPatternForCurrencySpacing

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

```
public void setPatternForCurrencySpacing (int itemType, 
                boolean beforeCurrency, 
                String pattern)
```

**\[icu\]** Sets the indicated currency spacing pattern or value. See[getPatternForCurrencySpacing(int, boolean)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPatternForCurrencySpacing(int,%20boolean))for more information.

Values for currency match and surrounding match must be[UnicodeSet](https://developer.android.com/reference/android/icu/text/UnicodeSet)patterns. Values for insert can be any string.

**Note:**ICU4J does not currently use this information.

<br />

|                                                            Parameters                                                            ||
|------------------|----------------------------------------------------------------------------------------------------------------|
| `itemType`       | `int`: one of CURRENCY_SPC_CURRENCY_MATCH, CURRENCY_SPC_SURROUNDING_MATCH or CURRENCY_SPC_INSERT <br />        |
| `beforeCurrency` | `boolean`: true if the pattern is for before the currency symbol. false if the pattern is for after it. <br /> |
| `pattern`        | `String`: string to override current setting; can be null. <br />                                              |

**See also:**

- [getPatternForCurrencySpacing(int, boolean)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPatternForCurrencySpacing(int,%20boolean))  

### setPatternSeparator

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

```
public void setPatternSeparator (char patternSeparator)
```

Sets the character used to separate positive and negative subpatterns in a pattern.

<br />

|                             Parameters                             ||
|--------------------|------------------------------------------------|
| `patternSeparator` | `char`: the pattern separator character <br /> |

### setPerMill

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

```
public void setPerMill (char perMill)
```

Sets the character used for mille percent sign. Different for Arabic, etc.

<br />

|                      Parameters                       ||
|-----------|--------------------------------------------|
| `perMill` | `char`: the mille percent character <br /> |

### setPerMillString

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

```
public void setPerMillString (String perMillString)
```

**\[icu\]**Sets the string used for permille sign.

**Note:** When the input permille String is represented by multiple Java chars, then[getPerMill()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPerMill())will return the default permille character ('‰').

<br />

|                      Parameters                       ||
|-----------------|--------------------------------------|
| `perMillString` | `String`: the permille string <br /> |

|                                                          Throws                                                           ||
|------------------------------------------------------------------------------------------------|---------------------------|
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException) | if`perMillString`is null. |

**See also:**

- [getPerMillString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPerMillString())  

### setPercent

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

```
public void setPercent (char percent)
```

Sets the character used for percent sign. Different for Arabic, etc.

<br />

|                   Parameters                    ||
|-----------|--------------------------------------|
| `percent` | `char`: the percent character <br /> |

### setPercentString

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

```
public void setPercentString (String percentString)
```

**\[icu\]**Sets the string used for percent sign.

**Note:** When the input grouping separator String is represented by multiple Java chars, then[getPercent()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPercent())will return the default percent sign character ('%').

<br />

|                      Parameters                      ||
|-----------------|-------------------------------------|
| `percentString` | `String`: the percent string <br /> |

|                                                          Throws                                                           ||
|------------------------------------------------------------------------------------------------|---------------------------|
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException) | if`percentString`is null. |

**See also:**

- [getPercentString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPercentString())  

### setPlusSign

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

```
public void setPlusSign (char plus)
```

**\[icu\]**Sets the localized plus sign.

<br />

|                                       Parameters                                       ||
|--------|--------------------------------------------------------------------------------|
| `plus` | `char`: the plus sign, used in localized patterns and formatted strings <br /> |

**See also:**

- [getPlusSign()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPlusSign())
- [setMinusSign(char)](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setMinusSign(char))
- [getMinusSign()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getMinusSign())  

### setPlusSignString

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

```
public void setPlusSignString (String plusSignString)
```

**\[icu\]**Sets the localized plus sign string.

**Note:** When the input plus sign String is represented by multiple Java chars, then[getPlusSign()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPlusSign())will return the default plus sign character ('+').

<br />

|                                                Parameters                                                 ||
|------------------|-----------------------------------------------------------------------------------------|
| `plusSignString` | `String`: the plus sign string, used in localized patterns and formatted strings <br /> |

|                                                           Throws                                                           ||
|------------------------------------------------------------------------------------------------|----------------------------|
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException) | if`plusSignString`is null. |

**See also:**

- [getPlusSignString()](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#getPlusSignString())  

### setSignificantDigit

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

```
public void setSignificantDigit (char sigDigit)
```

Sets the character used to represent a significant digit in a pattern.

<br />

|                             Parameters                             ||
|------------|--------------------------------------------------------|
| `sigDigit` | `char`: the significant digit pattern character <br /> |

### setZeroDigit

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

```
public void setZeroDigit (char zeroDigit)
```

Sets the character used for zero.

**Note:**This method propagates digit 1 to digit 9 by incrementing code point one by one.

<br />

##### API Note:

- **Discouraged:** ICU 58 use[setDigitStrings(java.lang.String[])](https://developer.android.com/reference/android/icu/text/DecimalFormatSymbols#setDigitStrings(java.lang.String[]))instead.

|                   Parameters                    ||
|-------------|------------------------------------|
| `zeroDigit` | `char`: the zero character. <br /> |