Sdílet prostřednictvím


Notation.Simple Method

Definition

Print the number using simple notation without any scaling by powers of ten.

[Android.Runtime.Register("simple", "()Landroid/icu/number/SimpleNotation;", "", ApiSince=30)]
public static Android.Icu.Number.SimpleNotation? Simple ();
[<Android.Runtime.Register("simple", "()Landroid/icu/number/SimpleNotation;", "", ApiSince=30)>]
static member Simple : unit -> Android.Icu.Number.SimpleNotation

Returns

A SimpleNotation for passing to the NumberFormatter notation() setter.

Attributes

Remarks

Print the number using simple notation without any scaling by powers of ten. This is the default behavior.

Since this is the default behavior, this method needs to be called only when it is necessary to override a previous setting.

Example outputs in <em>en-US</em> when printing 8.765E7 through 8.765E0:

87,650,000
            8,765,000
            876,500
            87,650
            8,765
            876.5
            87.65
            8.765

Java documentation for android.icu.number.Notation.simple().

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