Template:Sigfig

From Xenharmonic Wiki
Revision as of 08:36, 21 May 2023 by FloraC (talk | contribs) (+see also)
Jump to navigation Jump to search

This template rounds a number to a given number of significant figures. The first argument is the number to be rounded. The second argument is the number of significant figures; if not specified the default value is 3.

Usage

You type
{{sigfig|1234.567|5}}
You get
1234.6

See also

  • Module:Utils – the module that implements the functionality