Left Curve Software Stack
    Preparing search index...

    Function parseUnits

    • Parses a string representation of a number with a given number of decimals.

      Parameters

      • value: string

        The string representation of the number.

      • decimals: number

        The number of decimals to divide the number by.

      • Optionaldp: boolean

        Whether to use decimal places or not. If true, it will return the number with decimal places, otherwise it will return the number without decimal places.

      Returns string

      The parsed number.