Template:Sigfig: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
m +see also
ArrowHead294 (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>{{#invoke:Utils|round|{{{1|0}}}|{{{2|3}}}}}</includeonly><noinclude>
<includeonly>{{#invoke: Utils | round
| {{{1|0}}}
| {{{2|3}}}
}}</includeonly><noinclude>
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.  
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 ==
{{doc}}
; You type
: <code><nowiki>{{sigfig|1234.567|5}}</nowiki></code>
 
; You get
: {{{{PAGENAME}}|1234.567|5}}
 
== See also ==
* [[Module:Utils]] – the module that implements the functionality
 
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 02:47, 22 May 2024

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.

Template:Doc