Left Curve Software Stack
    Preparing search index...

    Function formatUnits

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

      Parameters

      • value: string | number

        The number to format.

      • decimals: number

        The number of decimals to divide the number by.

      Returns string

      The formatted number.