Function calculate

  • Calculates percentage (part/total * 100)

    Parameters

    • part: number
    • total: number
    • fractionDigits: number = 2

      digits after decimal place (2 by default). The number is rounded if necessary. If negative - no rounding then.

    Returns Percentage

Generated using TypeDoc