Convert a decimal number to a percentage between 0 and 1.
toPercent(75, 150) // return 0.5
The number to convert to percent.
The amount that would become 100%.
Generated using TypeDoc
Convert a decimal number to a percentage between 0 and 1.
Example