getPercent()function

getPercent(numerator: number, denumerator = 100): void
ParamType
numeratornumber
Number representing the amount of progress. required
denumeratorunknown
The number representing the whole amount (defaults to 100). Defaults to 100
Return
unknown
numerator expressed as a percentage of denumerator.

Get a number as a percentage of another number.

Examples

getPercent(1, 4) // 25