NumberFormat.MaximumFractionDigits Property
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 maximum number of digits allowed in the fraction portion of a number. -or- Sets the maximum number of digits allowed in the fraction portion of a number.
public virtual int MaximumFractionDigits { [Android.Runtime.Register("getMaximumFractionDigits", "()I", "GetGetMaximumFractionDigitsHandler", ApiSince=24)] get; [Android.Runtime.Register("setMaximumFractionDigits", "(I)V", "GetSetMaximumFractionDigits_IHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getMaximumFractionDigits", "()I", "GetGetMaximumFractionDigitsHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setMaximumFractionDigits", "(I)V", "GetSetMaximumFractionDigits_IHandler", ApiSince=24)>]
member this.MaximumFractionDigits : int with get, set
Property Value
the maximum number of fraction digits
- Attributes
Remarks
Property getter documentation:
Returns the maximum number of digits allowed in the fraction portion of a number. The default value is 3, which subclasses can override. When formatting, the exact behavior when this value is exceeded is subclass-specific. When parsing, this has no effect.
Java documentation for android.icu.text.NumberFormat.getMaximumFractionDigits()
.
Property setter documentation:
Sets the maximum number of digits allowed in the fraction portion of a number. This must be >= minimumFractionDigits. If the new value for maximumFractionDigits is less than the current value of minimumFractionDigits, then minimumFractionDigits will also be set to the new value.
Java documentation for android.icu.text.NumberFormat.setMaximumFractionDigits(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.