次の方法で共有


Precision.MinFraction(Int32) Method

Definition

Always show at least a certain number of fraction places after the decimal separator, padding with zeros if necessary.

[Android.Runtime.Register("minFraction", "(I)Landroid/icu/number/FractionPrecision;", "", ApiSince=30)]
public static Android.Icu.Number.FractionPrecision? MinFraction (int minFractionPlaces);
[<Android.Runtime.Register("minFraction", "(I)Landroid/icu/number/FractionPrecision;", "", ApiSince=30)>]
static member MinFraction : int -> Android.Icu.Number.FractionPrecision

Parameters

minFractionPlaces
Int32

The minimum number of numerals to display after the decimal separator (padding with zeros if necessary).

Returns

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

Attributes

Remarks

Always show at least a certain number of fraction places after the decimal separator, padding with zeros if necessary. Do not perform rounding (display numbers to their full precision).

<strong>NOTE:</strong> If you are formatting <em>doubles</em>, see the performance note in #unlimited.

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