Share via


NumberFormat.MinimumFractionDigits Property

Definition

Returns the minimum number of digits allowed in the fraction portion of a number. -or- Sets the minimum number of digits allowed in the fraction portion of a number.

public virtual int MinimumFractionDigits { [Android.Runtime.Register("getMinimumFractionDigits", "()I", "GetGetMinimumFractionDigitsHandler", ApiSince=24)] get; [Android.Runtime.Register("setMinimumFractionDigits", "(I)V", "GetSetMinimumFractionDigits_IHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getMinimumFractionDigits", "()I", "GetGetMinimumFractionDigitsHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setMinimumFractionDigits", "(I)V", "GetSetMinimumFractionDigits_IHandler", ApiSince=24)>]
member this.MinimumFractionDigits : int with get, set

Property Value

the minimum number of fraction digits

Attributes

Remarks

Property getter documentation:

Returns the minimum number of digits allowed in the fraction portion of a number. The default value is 0, which subclasses can override. When formatting, if this value is not reached, numbers are padded on the right with the locale-specific '0' character to ensure at least this number of fraction digits. When parsing, this has no effect.

Java documentation for android.icu.text.NumberFormat.getMinimumFractionDigits().

Property setter documentation:

Sets the minimum number of digits allowed in the fraction portion of a number. This must be &lt;= maximumFractionDigits. If the new value for minimumFractionDigits exceeds the current value of maximumFractionDigits, then maximumFractionDigits will also be set to the new value.

Java documentation for android.icu.text.NumberFormat.setMinimumFractionDigits(int).

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