共用方式為


DecimalFormat.MinimumSignificantDigits Property

Definition

<strong>[icu]</strong> Returns the effective minimum number of significant digits displayed. -or- <strong>[icu]</strong> <strong>Rounding and Digit Limits:</strong> Sets the minimum number of significant digits to be displayed.

public virtual int MinimumSignificantDigits { [Android.Runtime.Register("getMinimumSignificantDigits", "()I", "GetGetMinimumSignificantDigitsHandler", ApiSince=24)] get; [Android.Runtime.Register("setMinimumSignificantDigits", "(I)V", "GetSetMinimumSignificantDigits_IHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getMinimumSignificantDigits", "()I", "GetGetMinimumSignificantDigitsHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setMinimumSignificantDigits", "(I)V", "GetSetMinimumSignificantDigits_IHandler", ApiSince=24)>]
member this.MinimumSignificantDigits : int with get, set

Property Value

Attributes

Remarks

Property getter documentation:

<strong>[icu]</strong> Returns the effective minimum number of significant digits displayed.

Java documentation for android.icu.text.DecimalFormat.getMinimumSignificantDigits().

Property setter documentation:

<strong>[icu]</strong> <strong>Rounding and Digit Limits:</strong> Sets the minimum number of significant digits to be displayed. If the number of significant digits is less than this value, the number will be padded with zeros as necessary.

For example, if minimum significant digits is 3 and the number is 1.2, the number will be printed as "1.20".

If minimum and maximum integer, fraction, or significant digits conflict with each other, the most recently specified value is used. For example, if there is a formatter with minInt=5, and then you set maxInt=3, then minInt will be changed to 3.

Java documentation for android.icu.text.DecimalFormat.setMinimumSignificantDigits(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