Template:Math/Relative speed

From Team Fortress Wiki
Revision as of 07:04, 17 March 2012 by Org (talk | contribs) (Remove debug stuff :/)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

?

Template documentation [view] [edit] [history] [purge]

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).