Difference between revisions of "Template:Sigfigs"
From Kerbal Space Program Wiki
(If the first argument is "N/A", pass it through unmodified.) |
m (Improve rounding.) |
||
Line 1: | Line 1: | ||
{{#ifeq: {{{1}}}|N/A|N/A|{{#expr: <!-- | {{#ifeq: {{{1}}}|N/A|N/A|{{#expr: <!-- | ||
− | --> | + | --> floor( 0.5 + <!-- |
--> {{{1|12345678901234567890}}} <!-- | --> {{{1|12345678901234567890}}} <!-- | ||
--> / 10^( <!-- | --> / 10^( <!-- |
Revision as of 06:06, 18 October 2012
1.2346E+19
Usage | Produces |
---|---|
{{sigfigs|12345678901234567890|5}} |
1.2346×1019 |
{{sigfigs|0.123456789012345678|5}} |
0.12346 |