Template:Sigfig/doc: Difference between revisions

ArrowHead294 (talk | contribs)
m De-escape
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
{{dochead}}
{{dochead}}{{modlink|Utils}}
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 ===
=== Usage ===
; You type
; You type
: <code><nowiki>{{sigfig|1234.567|5}}</nowiki></code>
<pre>{{sigfig|1234.567|5}}</pre>


; You get
; You get
: {{{{ROOTPAGENAME}}|1234.567|5}}
: {{{{ROOTPAGENAME}}|1234.567|5}}
=== See also ===
* {{modlink|Utils}}