convertToScale

fun convertToScale(otherScale: Int): BigNum

Converts the internal scale of this BigNum to otherScale while keeping the same value.

For example:

assertEquals("0.0010", "0.001".bn.convertToScale(4).toString())