Canton dApp Booster
    Preparing search index...
    • Groups the integer part for reading and leaves the fraction verbatim, so a value still being typed (1., 1.50) survives. Intl is handed the string unparsed, which formats it exactly where the float would drift. The grouping and decimal separators are the locale's, so sanitizeAmountInput has to read the result back under the same locale.

      Parameters

      • value: string
      • Optionallocale: string

      Returns string

      formatAmount('8421337.1234567891') // '8,421,337.1234567891'