NumberFormatterSettings.Decimal 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.
Sets the decimal separator display strategy.
[Android.Runtime.Register("decimal", "(Landroid/icu/number/NumberFormatter$DecimalSeparatorDisplay;)Landroid/icu/number/NumberFormatterSettings;", "GetDecimal_Landroid_icu_number_NumberFormatter_DecimalSeparatorDisplay_Handler", ApiSince=30)]
public virtual Java.Lang.Object? Decimal(Android.Icu.Number.NumberFormatter.DecimalSeparatorDisplay? style);
[<Android.Runtime.Register("decimal", "(Landroid/icu/number/NumberFormatter$DecimalSeparatorDisplay;)Landroid/icu/number/NumberFormatterSettings;", "GetDecimal_Landroid_icu_number_NumberFormatter_DecimalSeparatorDisplay_Handler", ApiSince=30)>]
abstract member Decimal : Android.Icu.Number.NumberFormatter.DecimalSeparatorDisplay -> Java.Lang.Object
override this.Decimal : Android.Icu.Number.NumberFormatter.DecimalSeparatorDisplay -> Java.Lang.Object
Parameters
The decimal separator display strategy to use when rendering numbers.
Returns
The fluent chain
- Attributes
Remarks
Sets the decimal separator display strategy. This affects integer numbers with no fraction part. Most common values:
Auto: "1"
Always: "1."
Pass an element from the DecimalSeparatorDisplay enum to this setter.
NumberFormatter.with().decimal(DecimalSeparatorDisplay.ALWAYS)
The default is AUTO decimal separator display.
Android reference for android.icu.number.NumberFormatterSettings.decimal.
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.