BigDecimal Class scale()方法 (BigDecimal Class scale() method)
scale() method is available in java.math package.
scale()方法在java.math包中可用。
scale() method is used to get the scale of this BigDecimal object. As we will define the scale when this BigInteger is 0, +ve,-ve.
scale()方法用于获取此BigDecimal对象的比例。 由于我们将在此BigInteger为0,+ ve,-ve时定义比例。
- Case 1: The scale is the number of digits represented to the right side of decimal when this BigDecimal is 0 or +ve.
- Case 2: The scale is the unscaled value of the [number * 10 pow (-[-( this BigDecimal)]).
scale() method is a non-static method, it is accessible with the class object only and if we try to access the meth