BigDecimal.movePointLeft

BigDecimal.movePointLeft

Class Overview | Class Members | This Package | All Packages

Syntax
public BigDecimal movePointLeft( int n )
Description
Returns a BigDecimal which is equivalent to this one with the decimal point moved n places to the left. If n is non-negative, the call merely adds n to the scale. If n is negative, the call is equivalent to movePointRight(-n). (The BigDecimal returned by this call has value (this * 10**-n) and scale MAX(this.scale()+n, 0).)