DecimalFormat.RoundingIncrement Property
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> Returns the increment to which numbers are being rounded. -or- <strong>[icu]</strong> <strong>Rounding and Digit Limits:</strong> Sets an increment, or interval, to which numbers are rounded.
public virtual Java.Math.BigDecimal? RoundingIncrement { [Android.Runtime.Register("getRoundingIncrement", "()Ljava/math/BigDecimal;", "GetGetRoundingIncrementHandler", ApiSince=24)] get; [Android.Runtime.Register("setRoundingIncrement", "(Ljava/math/BigDecimal;)V", "GetSetRoundingIncrement_Ljava_math_BigDecimal_Handler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getRoundingIncrement", "()Ljava/math/BigDecimal;", "GetGetRoundingIncrementHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setRoundingIncrement", "(Ljava/math/BigDecimal;)V", "GetSetRoundingIncrement_Ljava_math_BigDecimal_Handler", ApiSince=24)>]
member this.RoundingIncrement : Java.Math.BigDecimal with get, set
Property Value
- Attributes
Remarks
Property getter documentation:
<strong>[icu]</strong> Returns the increment to which numbers are being rounded.
Java documentation for android.icu.text.DecimalFormat.getRoundingIncrement()
.
Property setter documentation:
<strong>[icu]</strong> <strong>Rounding and Digit Limits:</strong> Sets an increment, or interval, to which numbers are rounded. For example, a rounding increment of 0.05 will cause the number 1.23 to be rounded to 1.25 in the default rounding mode.
The rounding increment can be specified via the pattern string: for example, the pattern "#,##0.05" encodes a rounding increment of 0.05.
The rounding increment is applied <em>after</em> any multipliers might take effect; for example, in scientific notation or when #setMultiplier
is used.
See #setMaximumFractionDigits
and #setMaximumSignificantDigits
for two other ways of specifying rounding strategies.
Java documentation for android.icu.text.DecimalFormat.setRoundingIncrement(java.math.BigDecimal)
.
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.