Options
All
  • Public
  • Public/Protected
  • All
Menu

Module FormatAndConvert/numberAsPercent

Index

Functions

Functions

numberAsPercent

  • numberAsPercent(value: number | string, dropDecimals?: boolean): string
  • Converts a given, numeric value 0.45 and converts it into a percent representation like 45,00 or 45 if dropDecimals is set to true

    Parameters

    • value: number | string

      The value to convert into a percent format

    • Optional dropDecimals: boolean

      True to drop the decimal numbers in the output

    Returns string

Generated using TypeDoc