DecimalFormat.SetSignificantDigitsUsed(Boolean) 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.
<strong>[icu]</strong> <strong>Rounding and Digit Limits:</strong> Sets whether significant digits are to be used in rounding.
[Android.Runtime.Register("setSignificantDigitsUsed", "(Z)V", "GetSetSignificantDigitsUsed_ZHandler", ApiSince=24)]
public virtual void SetSignificantDigitsUsed (bool useSignificantDigits);
[<Android.Runtime.Register("setSignificantDigitsUsed", "(Z)V", "GetSetSignificantDigitsUsed_ZHandler", ApiSince=24)>]
abstract member SetSignificantDigitsUsed : bool -> unit
override this.SetSignificantDigitsUsed : bool -> unit
Parameters
- useSignificantDigits
- Boolean
true to enable significant digit rounding; false to disable it.
- Attributes
Remarks
<strong>[icu]</strong> <strong>Rounding and Digit Limits:</strong> Sets whether significant digits are to be used in rounding.
Calling df.setSignificantDigitsUsed(true)
is functionally equivalent to:
df.setMinimumSignificantDigits(1);
df.setMaximumSignificantDigits(6);
Java documentation for android.icu.text.DecimalFormat.setSignificantDigitsUsed(boolean)
.
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.