@pathmaker-digital/pmd-utilities - v2.2.6
    Preparing search index...

    Function formatCurrency

    • Formats a number into a currency string.

      Parameters

      • amount: number

        The number to convert.

      • currency: string = "$"

        The currency symbol to prefix.

      Returns string

      A formatted string like "$5.00"

      formatCurrency(10) // "$10"