BigDecimal.Scale 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.
Returns the scale of this BigDecimal
.
[Android.Runtime.Register("scale", "()I", "GetScaleHandler")]
public virtual int Scale ();
[<Android.Runtime.Register("scale", "()I", "GetScaleHandler")>]
abstract member Scale : unit -> int
override this.Scale : unit -> int
Returns
the scale of this BigDecimal
.
- Attributes
Remarks
Returns the scale of this BigDecimal
. If zero or positive, the scale is the number of digits to the right of the decimal point. If negative, the unscaled value of the number is multiplied by ten to the power of the negation of the scale. For example, a scale of -3
means the unscaled value is multiplied by 1000.
Java documentation for java.math.BigDecimal.scale()
.
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.