Options
All
  • Public
  • Public/Protected
  • All
Menu

Module FormatAndConvert/numberAsMoney

Index

Functions

Functions

numberAsMoney

  • numberAsMoney(value: number | string, dropDecimals?: boolean, thousandSeparator?: boolean): string
  • This helper can be used to convert a number value into a formatted money string. The output format will be 1.000.000,00 or 1.000.000 if "dropDecimals" is set to true

    Parameters

    • value: number | string

      The value to convert into a number format

    • Optional dropDecimals: boolean

      True to drop the decimal numbers in the output

    • Optional thousandSeparator: boolean

      Set to FALSE to disable the thousand separators

    Returns string

Generated using TypeDoc