Partager via


Scale.PowerOfTen(Int32) Method

Definition

Multiply numbers by 100 before formatting.

[Android.Runtime.Register("powerOfTen", "(I)Landroid/icu/number/Scale;", "", ApiSince=30)]
public static Android.Icu.Number.Scale? PowerOfTen (int power);
[<Android.Runtime.Register("powerOfTen", "(I)Landroid/icu/number/Scale;", "", ApiSince=30)>]
static member PowerOfTen : int -> Android.Icu.Number.Scale

Parameters

power
Int32

Returns

A Multiplier for passing to the setter in NumberFormatter.

Attributes

Remarks

Multiply numbers by 100 before formatting. Useful for combining with a percent unit:

NumberFormatter.with().unit(NoUnit.PERCENT).multiplier(Multiplier.powerOfTen(2))

Java documentation for android.icu.number.Scale.powerOfTen(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.

Applies to