Partager via


NumberFormat.MaximumIntegerDigits Property

Definition

Returns the maximum number of digits allowed in the integer portion of a number. -or- Sets the maximum number of digits allowed in the integer portion of a number.

public virtual int MaximumIntegerDigits { [Android.Runtime.Register("getMaximumIntegerDigits", "()I", "GetGetMaximumIntegerDigitsHandler", ApiSince=24)] get; [Android.Runtime.Register("setMaximumIntegerDigits", "(I)V", "GetSetMaximumIntegerDigits_IHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getMaximumIntegerDigits", "()I", "GetGetMaximumIntegerDigitsHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setMaximumIntegerDigits", "(I)V", "GetSetMaximumIntegerDigits_IHandler", ApiSince=24)>]
member this.MaximumIntegerDigits : int with get, set

Property Value

the maximum number of integer digits

Attributes

Remarks

Property getter documentation:

Returns the maximum number of digits allowed in the integer portion of a number. The default value is 40, which subclasses can override.

When formatting, if the number of digits exceeds this value, the highest- significance digits are truncated until the limit is reached, in accordance with UTS#35.

This setting has no effect on parsing.

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

Property setter documentation:

Sets the maximum number of digits allowed in the integer portion of a number. This must be &gt;= minimumIntegerDigits. If the new value for maximumIntegerDigits is less than the current value of minimumIntegerDigits, then minimumIntegerDigits will also be set to the new value.

Java documentation for android.icu.text.NumberFormat.setMaximumIntegerDigits(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