NumberFormatterSettings.Notation(Notation) 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.
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.
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.