Hex Core JS
    Preparing search index...

    Function formatMoney

    • Formats the given number as money. Wraps Intl.NumberFormat but adds support for null and undefined and automatic conversion from the minor unit of the currency (e.g. cents).

      Parameters

      • value: number | null | undefined

        The number to format.

      • options: FormatMoneyOptions = {}

        The options for formatting the number.

      Returns string