Share via


Currency.DefaultFractionDigits Property

Definition

Returns the number of the number of fraction digits that should be displayed for this currency.

public virtual int DefaultFractionDigits { [Android.Runtime.Register("getDefaultFractionDigits", "()I", "GetGetDefaultFractionDigitsHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getDefaultFractionDigits", "()I", "GetGetDefaultFractionDigitsHandler", ApiSince=24)>]
member this.DefaultFractionDigits : int

Property Value

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. This is equivalent to getDefaultFractionDigits(CurrencyUsage.STANDARD);

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.

Java documentation 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.

Applies to