Share via


NumberFormatterSettings.Notation(Notation) Method

Definition

Specifies the notation style (simple, scientific, or compact) for rendering numbers.

[Android.Runtime.Register("notation", "(Landroid/icu/number/Notation;)Landroid/icu/number/NumberFormatterSettings;", "GetNotation_Landroid_icu_number_Notation_Handler", ApiSince=30)]
public virtual Java.Lang.Object? Notation (Android.Icu.Number.Notation? notation);
[<Android.Runtime.Register("notation", "(Landroid/icu/number/Notation;)Landroid/icu/number/NumberFormatterSettings;", "GetNotation_Landroid_icu_number_Notation_Handler", ApiSince=30)>]
abstract member Notation : Android.Icu.Number.Notation -> Java.Lang.Object
override this.Notation : Android.Icu.Number.Notation -> Java.Lang.Object

Parameters

notation
Notation

The notation strategy to use.

Returns

The fluent chain.

Attributes

Remarks

Specifies the notation style (simple, scientific, or compact) for rendering numbers.

<ul> <li>Simple notation: "12,300" <li>Scientific notation: "1.23E4" <li>Compact notation: "12K" </ul>

All notation styles will be properly localized with locale data, and all notation styles are compatible with units, rounding strategies, and other number formatter settings.

Pass this method the return value of a Notation factory method. For example:

NumberFormatter.with().notation(Notation.compactShort())

The default is to use simple notation.

Java documentation for android.icu.number.NumberFormatterSettings.notation(android.icu.number.Notation).

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