movePointRight

abstract fun movePointRight(n: Int): BigDecimal

Returns a BigDecimal which is equivalent to this one with the decimal point moved n places to the right. If n is non-negative, the call merely subtracts n from the _scale. If n is negative, the call is equivalent to movePointLeft(-n). The BigDecimal returned by this call has value (this 10<sup>n</sup>) and _scale max(this._scale()-n, 0).

Return

a BigDecimal which is equivalent to this one with the decimal point moved n places to the right.

Parameters

n

number of places to move the decimal point to the right.

Throws

if _scale overflows.