Template:ExactlyOrAbout/doc: Difference between revisions
ArrowHead294 (talk | contribs) No edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{dochead}} | {{dochead}} | ||
If the input value ''x'' to <code>{{ | If the input value ''x'' to <code><nowiki>{{{sigfigs}}}</nowiki></code> (3 by default) [[Wikipedia: Significant figures|significant figures]] = the exact value of ''x'', display "exactly ''x''"; otherwise display "about ''x''" (rounded to specified significant figures). | ||
=== Usage === | === Usage === | ||
{| class="wikitable center-all" | {| class="wikitable center-all" | ||
|- | |||
! You type !! You get | ! You type !! You get | ||
|- | |- | ||
| <code>{{ | | <code><nowiki>{{ExactlyOrAbout|24}}</nowiki></code> || {{{{ROOTPAGENAME}}|24}} | ||
|- | |- | ||
| <code>{{ | | <code><nowiki>{{ExactlyOrAbout|16.667}}</nowiki></code> || {{{{ROOTPAGENAME}}|16.667}} | ||
|- | |- | ||
| <code>{{ | | <code><nowiki>{{ExactlyOrAbout|16.667|sigfigs=4}}</nowiki></code> || {{{{ROOTPAGENAME}}|16.667|sigfigs=4}} | ||
|- | |- | ||
| <code>{{ | | <code><nowiki>{{ExactlyOrAbout|16.67|sigfigs=4}}</nowiki></code> || {{{{ROOTPAGENAME}}|16.67|sigfigs=4}} | ||
|} | |} | ||
=== See also === | === See also === | ||
* [[Template:Sigfig]] – the template that rounds a number to a given number of significant figures | * [[Template:Sigfig]] – the template that rounds a number to a given number of significant figures |