Template:Math/Relative speed/doc
This template converts a speed expressed in HU/s to the customary percentage result of comparing it to the base speed of 300 HU/s.
Usage
{{Math/Relative speed|400}}
This example yields 133.
Calculation factor
The default rounding is a whole number. To modify the rounding, add a digits parameter like so:
{{Math/Relative speed|400|digits=3}}
This example yields 133.333.
Errors
- This template will display ? if it is missing the speed.
- This template will display an Expression error if it cannot interpret either the speed or digits passed to it. Only include numeric characters (0-9).