Calculates the percentage from a numerator and denominator, optionally rounding to a specified precision.
Examples: percent(1, 4) // 25 percent(1, 0) // 0 percent(1, 3, 4) // 33.3333
The numerator value
The denominator value
Optional
Optional number of decimal places to round to
The percentage value, rounded if precision is provided
Calculates the percentage from a numerator and denominator, optionally rounding to a specified precision.
Examples: percent(1, 4) // 25 percent(1, 0) // 0 percent(1, 3, 4) // 33.3333