Template:Sigfig/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) No edit summary |
No edit summary |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{dochead}} | {{dochead}} | ||
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 | ||
<pre>{{sigfig|1234.567|5}}</pre> | |||
; You get | ; You get | ||
: {{{{ROOTPAGENAME}}|1234.567|5}} | : {{{{ROOTPAGENAME}}|1234.567|5}} | ||
Latest revision as of 06:36, 31 October 2025
- This template invokes the following functions: round from 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
- You type
{{sigfig|1234.567|5}}
- You get
- 1234.6