Template:FormatNumDP

Script to nicely format and round numbers to N decimal places.

Syntax:

DP is Number of Decimal Places and if not set it will default to 0.

This is the relevant part of the script with carriage-returns to make it easier to read!

Some examples ...

100kph = mph 100kph = mph The input number can be (un)formatted so

will give the same result as

The input number can be (un)formatted so will give the same result as