Difference between revisions of "Template:Significant figures"
en>Rich Farmbrough m (update template name using) |
m (37 revisions imported) |
||
| (14 intermediate revisions by 8 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{#ifeq:{{{1<noinclude>|0</noinclude>}}}|0 | |
| − | + | |0 | |
| − | + | |{{significant figures/{{#if:{{{2|}}} | |
| − | + | |rnd | |
| − | + | |sum | |
| − | + | }} | |
| − | + | |1={{formatnum:{{{1}}}|R}} | |
| − | + | |2={{{2}}} | |
| − | + | |3={{Order of magnitude|{{formatnum:{{{1}}}|R}}}} | |
| − | + | }} | |
| − | + | }}<noinclude> | |
| − | + | {{documentation}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</noinclude> | </noinclude> | ||
Latest revision as of 01:25, 10 September 2019
{{#ifeq:0|0
|0
|{{significant figures/{{#if:
|rnd
|sum
}}
|1={{{1}}}
|2={{{2}}}
|3={{safesubst:#ifexpr:{{{1}}}=0
|{{safesubst:#ifexpr:abs{{{1}}}1=1
|0
|{{safesubst:#expr:floor((ln(abs{{{1}}}1)/ln10)+1)}}
}}
|{{#expr:floor((ln(abs({{{1}}}) )/ln 10)+1E((abs{{{1}}}>1E100 or abs{{{1}}}<1E-100)-14))}}
}}
}}
}}
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |