• Divides a number by a given exponent of base 10 (10exponent), and un-scales it into a string representation of the number.

    Parameters

    • value: string | bigint
    • decimals: number

    Returns string

    A string representation of the number

    Example

    unScale(112000000000000000000n, 18) // '112'
    unScale('112000000000000000000', 18) // '112'