BigDecimal.movePointRight
Class Overview | Class Members |
This Package |
All Packages
public BigDecimal movePointRight( int n )
Description
Moves the decimal point the specified number of places to the right.
If this number's scale is >= n, the call merely subtracts n from the
scale; otherwise, it sets the scale to zero, and multiplies the integer
value by 10 ** (n - this.scale). If n is negative, the call is
equivalent to movePointLeft(-n). (The BigDecimal returned by this call
has value (this * 10**n) and scale MAX(this.scale()-n, 0).)