EasyPath SDK
    Preparing search index...

    Function parseAmount

    • Convert a plain decimal string to atoms without floating point or rounding. Zero is allowed; quotes require a positive amount. Extra decimal places, exponent notation and whitespace fail.

      Parameters

      • value: string
      • decimals: number

      Returns string

      `parseAmount('1.25', 9)` returns `'1250000000'`.