Precision.MinSignificantDigits(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.
Always show at least a certain number of significant digits/figures, padding with zeros if necessary.
[Android.Runtime.Register("minSignificantDigits", "(I)Landroid/icu/number/Precision;", "", ApiSince=30)]
public static Android.Icu.Number.Precision? MinSignificantDigits (int minSignificantDigits);
[<Android.Runtime.Register("minSignificantDigits", "(I)Landroid/icu/number/Precision;", "", ApiSince=30)>]
static member MinSignificantDigits : int -> Android.Icu.Number.Precision
Parameters
- minSignificantDigits
- Int32
The minimum number of significant digits to display (padding with zeros if too short).
Returns
A Precision for chaining or passing to the NumberFormatter precision() setter.
- Attributes
Remarks
Always show at least a certain number of significant digits/figures, 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.minSignificantDigits(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.