Currency.GetDefaultFractionDigits(Currency+CurrencyUsage) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the number of the number of fraction digits that should be displayed for this currency with Usage.
[Android.Runtime.Register("getDefaultFractionDigits", "(Landroid/icu/util/Currency$CurrencyUsage;)I", "GetGetDefaultFractionDigits_Landroid_icu_util_Currency_CurrencyUsage_Handler", ApiSince=24)]
public virtual int GetDefaultFractionDigits(Android.Icu.Util.Currency.CurrencyUsage? Usage);
[<Android.Runtime.Register("getDefaultFractionDigits", "(Landroid/icu/util/Currency$CurrencyUsage;)I", "GetGetDefaultFractionDigits_Landroid_icu_util_Currency_CurrencyUsage_Handler", ApiSince=24)>]
abstract member GetDefaultFractionDigits : Android.Icu.Util.Currency.CurrencyUsage -> int
override this.GetDefaultFractionDigits : Android.Icu.Util.Currency.CurrencyUsage -> int
Parameters
- Usage
- Currency.CurrencyUsage
the usage of currency(Standard or Cash)
Returns
a non-negative number of fraction digits to be displayed
- Attributes
Remarks
Returns the number of the number of fraction digits that should be displayed for this currency with Usage. Important: The number of fraction digits for a given currency is NOT guaranteed to be constant across versions of ICU or CLDR. For example, do NOT use this value as a mechanism for deciding the magnitude used to store currency values in a database. You should use this value for display purposes only.
Android reference for android.icu.util.Currency.getDefaultFractionDigits.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.