Template:ExactlyOrAbout/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
Docpage
(No difference)

Revision as of 17:12, 15 July 2024

If the input value x to {{{sigfigs}}} (3 by default) significant figures = the exact value of x, display "exactly x"; otherwise display "about x" (rounded to {{{sigfigs}}} significant figures).

Usage

You type You get
{{ExactlyOrAbout|24}} exactly 24
{{ExactlyOrAbout|16.667}} about 16.7
{{ExactlyOrAbout|16.667|sigfigs=4}} about 16.67
{{ExactlyOrAbout|16.67|sigfigs=4}} exactly 16.67

See also

  • Template:Sigfig – the template that rounds a number to a given number of significant figures