Template:Scinote

Revision as of 00:47, 11 April 2020 by Zacharycook505-104668625857976836193 (Talk | contribs) (Created page with "<includeonly>{{scinote/{{#if:{{{2|}}}|S|P}}{{{fn|}}}{{#expr:({{{1}}}>0)-({{{1}}}<0)}}|{{{1}}}|{{#expr:floor(ln(abs{{{1}}})/ln10)}}|{{{2}}}}}</includeonly><noinclude> {{documen...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Revision as of 00:47, 11 April 2020 by Zacharycook505-104668625857976836193 (Talk | contribs) (Created page with "<includeonly>{{scinote/{{#if:{{{2|}}}|S|P}}{{{fn|}}}{{#expr:({{{1}}}>0)-({{{1}}}<0)}}|{{{1}}}|{{#expr:floor(ln(abs{{{1}}})/ln10)}}|{{{2}}}}}</includeonly><noinclude> {{documen...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
[view] [edit] [history] [purge] Documentation icon Template documentation

It is a template for dealing with scientific notation.

Example

Convert toscientific notation by default

{{scinote|123.456}} → {{rnd/bExpression error: Unexpected < operator.|Expression error: Unexpected < operator.|Expression error: Unrecognized punctuation character "[".|Expression error: Unexpected < operator.}}×102
{{scinote|123.456e7}} → {{rnd/bExpression error: Unexpected < operator.|Expression error: Unexpected < operator.|Expression error: Unrecognized punctuation character "[".|Expression error: Unexpected < operator.}}×109

Specify the number of digits ofsignificant figuresin the second parameter

{{scinote|123.456|3}}Template:Scinote/S1
{{scinote|123.456|7}}Template:Scinote/S1

Specify the number of significant digits while converting to scientific notation with the first parameter and second parameter

{{scinote|123.456e7|4}}Template:Scinote/S1
The above documentation is transcluded from Template:Scinote/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.