FractionPrecision.WithSignificantDigits 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.
Override maximum fraction digits with maximum significant digits depending on the magnitude of the number.
[Android.Runtime.Register("withSignificantDigits", "(IILandroid/icu/number/NumberFormatter$RoundingPriority;)Landroid/icu/number/Precision;", "GetWithSignificantDigits_IILandroid_icu_number_NumberFormatter_RoundingPriority_Handler", ApiSince=34)]
public virtual Android.Icu.Number.Precision? WithSignificantDigits(int minSignificantDigits, int maxSignificantDigits, Android.Icu.Number.NumberFormatter.RoundingPriority? priority);
[<Android.Runtime.Register("withSignificantDigits", "(IILandroid/icu/number/NumberFormatter$RoundingPriority;)Landroid/icu/number/Precision;", "GetWithSignificantDigits_IILandroid_icu_number_NumberFormatter_RoundingPriority_Handler", ApiSince=34)>]
abstract member WithSignificantDigits : int * int * Android.Icu.Number.NumberFormatter.RoundingPriority -> Android.Icu.Number.Precision
override this.WithSignificantDigits : int * int * Android.Icu.Number.NumberFormatter.RoundingPriority -> Android.Icu.Number.Precision
Parameters
- minSignificantDigits
- Int32
Pad trailing zeros to achieve this minimum number of significant digits.
- maxSignificantDigits
- Int32
Round the number to achieve this maximum number of significant digits.
- priority
- NumberFormatter.RoundingPriority
How to disambiguate between fraction digits and significant digits.
Returns
A precision for chaining or passing to the NumberFormatter precision() setter.
- Attributes
Remarks
Override maximum fraction digits with maximum significant digits depending on the magnitude of the number. See UNumberRoundingPriority.
Android reference for android.icu.number.FractionPrecision.withSignificantDigits.
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.