Skip to content
Functionutilsv0.8.17

percentage

Takes two numbers and returns the percentage of the first number in the second number with two decimal places.

percentage(
    num1: number,
    num2: number
): number