Function parseUnits

  • Function to format a decimal point number in an integer

    Example

    const amount = parseUnits("0.00123456", 8);
    console.log(amount);
    // '123456'

    Parameters

    • value: string
    • decimals: number

    Returns string

Generated using TypeDoc