Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IFilterCurrency

Hierarchy

  • IFilterCurrency

Callable

  • __call(amount: number, symbol?: string, fractionSize?: number): string
  • Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default symbol for current locale is used.

    Parameters

    • amount: number

      Input to filter.

    • Optional symbol: string

      Currency symbol or identifier to be displayed.

    • Optional fractionSize: number

      Number of decimal places to round the amount to, defaults to default max fraction size for current locale

    Returns string

    Formatted number

Generated using TypeDoc