math
- Description:
- Mathematical Utilities library
Example
D.math
Methods
(static) percent(actual, maximum) → {number}
- Description:
- Percentage Calculating Function
Example
D.math.percent(7, 10) // returns 70
Parameters:
Name | Type | Description |
---|---|---|
actual |
number | The actual number |
maximum |
number | The maximum number |
Returns:
- The Percentage
- Type
- number