open-nav
    Preparing search index...

    Function formatAmount

    • Format an exact decimal for display without going through a JavaScript number.

      The amounts on an invoice are exact decimal strings precisely so they do not lose precision; rendering them through Number to get thousands separators would throw that away at the top of NAV's 18 digit range.

      Parameters

      Returns string