Template:ExactlyOrAbout: Difference between revisions

Dummy index (talk | contribs)
fix: article transcluding this template wrongly be categorized as Category:Templates
Documentation
Line 1: Line 1:
{{#ifeq: {{#expr: {{sigfig| {{{1}}} }} - {{{1}}} }} | 0 |exactly|about}} {{sigfig| {{{1}}} }}<!-- If the value x = {{{1}}} to 3 sigfigs = the exact value, display "exactly x"; otherwise display "about x"-->
<includeonly>{{#ifeq: {{#expr: {{sigfig| {{{1}}} }} - {{{1}}} }} | 0 |exactly|about}} {{sigfig| {{{1}}} }}</includeonly><noinclude>
<noinclude>[[Category:Templates]]</noinclude>
If the input value to 3 [[Wikipedia: Significant figures|significant figures]] = the exact value, display "exactly"; otherwise display "about".
 
== See also ==
* [[Template:Sigfig]] – the template that rounds a number to a given number of significant figures.
 
[[Category:Templates]]
</noinclude>