Difference between revisions of "Template:Sigfigs"
From Kerbal Space Program Wiki
m (Attempt to fix some floating-point errors.) |
(If the first argument is "N/A", pass it through unmodified.) |
||
Line 1: | Line 1: | ||
− | {{#expr: <!-- | + | {{#ifeq: {{{1}}}|N/A|N/A|{{#expr: <!-- |
--> ceil( <!-- | --> ceil( <!-- | ||
--> {{{1|12345678901234567890}}} <!-- | --> {{{1|12345678901234567890}}} <!-- | ||
Line 12: | Line 12: | ||
--> + 1 - {{{2|5}}} <!-- | --> + 1 - {{{2|5}}} <!-- | ||
--> ) <!-- | --> ) <!-- | ||
− | --> )<!-- | + | --> ) <!-- |
− | --> }}<noinclude> | + | --> }}}}<noinclude> |
{| class="wikitable" | {| class="wikitable" |
Revision as of 05:49, 18 October 2012
1.2346E+19
Usage | Produces |
---|---|
{{sigfigs|12345678901234567890|5}} |
1.2346×1019 |
{{sigfigs|0.123456789012345678|5}} |
0.12346 |