scaleByPowerOfTen

fun scaleByPowerOfTen(n: Int): BigDecimal

Returns a BigDecimal whose numerical value is equal to (this * 10<sup>n</sup>). The _scale of the result is (this._scale() - n).

Return

a BigDecimal whose numerical value is equal to (this * 10<sup>n</sup>)

Since

1.5

Parameters

n

the exponent power of ten to _scale by

Throws

if the _scale would be outside the range of a 32-bit integer.