Canton dAppBooster
    Preparing search index...
    • Rounds an amount to a fixed number of decimals and groups it for reading, so a column of figures compares at a glance where formatAmount keeps every digit the ledger carries. An amount it cannot read formats to nothing rather than to a zero that would read as a real balance.

      Parameters

      Returns string | undefined

      formatFigure('1234.5') // '1,234.50'
      formatFigure('abc') // undefined