Partager via


Precision.MinMaxSignificantDigits(Int32, Int32) Method

Definition

Show numbers rounded if necessary to a certain number of significant digits/figures; in addition, always show at least a certain number of significant digits, padding with zeros if necessary.

[Android.Runtime.Register("minMaxSignificantDigits", "(II)Landroid/icu/number/Precision;", "", ApiSince=30)]
public static Android.Icu.Number.Precision? MinMaxSignificantDigits (int minSignificantDigits, int maxSignificantDigits);
[<Android.Runtime.Register("minMaxSignificantDigits", "(II)Landroid/icu/number/Precision;", "", ApiSince=30)>]
static member MinMaxSignificantDigits : int * int -> Android.Icu.Number.Precision

Parameters

minSignificantDigits
Int32

The minimum number of significant digits to display (padding with zeros if necessary).

maxSignificantDigits
Int32

The maximum number of significant digits to display (rounding if necessary).

Returns

A Precision for chaining or passing to the NumberFormatter precision() setter.

Attributes

Remarks

Show numbers rounded if necessary to a certain number of significant digits/figures; in addition, always show at least a certain number of significant digits, padding with zeros if necessary.

Java documentation for android.icu.number.Precision.minMaxSignificantDigits(int, 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