Template:Sigfig: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Use the module
m +see also
Line 8: Line 8:
; You get
; You get
: {{{{PAGENAME}}|1234.567|5}}
: {{{{PAGENAME}}|1234.567|5}}
== See also ==
* [[Module:Utils]] – the module that implements the functionality


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 08:36, 21 May 2023

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