Precision.MinMaxFraction(Int32, Int32) 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.
Show numbers rounded if necessary to a certain number of fraction places (numerals after the decimal separator); in addition, always show at least a certain number of places after the decimal separator, padding with zeros if necessary.
[Android.Runtime.Register("minMaxFraction", "(II)Landroid/icu/number/FractionPrecision;", "", ApiSince=30)]
public static Android.Icu.Number.FractionPrecision? MinMaxFraction (int minFractionPlaces, int maxFractionPlaces);
[<Android.Runtime.Register("minMaxFraction", "(II)Landroid/icu/number/FractionPrecision;", "", ApiSince=30)>]
static member MinMaxFraction : int * int -> Android.Icu.Number.FractionPrecision
Parameters
- minFractionPlaces
- Int32
The minimum number of numerals to display after the decimal separator (padding with zeros if necessary).
- maxFractionPlaces
- Int32
The maximum number of numerals to display after the decimal separator (rounding if necessary).
Returns
A FractionPrecision for chaining or passing to the NumberFormatter precision() setter.
- Attributes
Remarks
Show numbers rounded if necessary to a certain number of fraction places (numerals after the decimal separator); in addition, always show at least a certain number of places after the decimal separator, padding with zeros if necessary.
Java documentation for android.icu.number.Precision.minMaxFraction(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.