Template:Roundup

Template page
Revision as of 16:00, 2 August 2006 by Shane (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template rounds up a numeric value to a limited number of decimal places.

Usage
  • {{Roundup|value}}
  • {{Roundup|value|decimals}}
  • Both parameters can be any valid numeric expression.
  • The decimals parameter defaults to 0 and is rounded to the nearest integer.
  • decimals can be negative to round up to a multiple of a power of ten.
  • If decimals is not between -20 and 20, the value is returned without rounding.