Template:Scinote

From The Sonic Eats Rings Museum
Revision as of 22:58, 3 December 2008 by SoNick (talk | contribs) (New page: <includeonly>{{scinote/{{#if:{{{2|}}}|S|P}}{{{fn|}}}{{#expr:({{{1}}}>0)-({{{1}}}<0)}}|{{{1}}}|{{#expr:floor(ln(abs{{{1}}})/ln10)}}|{{{2}}}}}</includeonly><noinclude>{{doc}}</noinclude>)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[edit] Template-info.svg Template documentation

Usage

This template converts an interger expression into scientific notation.

e.g. {{scinote|12345}} gives "Template:Scinote/e"

To round to a given number of significant figures, specify this number as the second unnamed parameter.

e.g. {{scinote|12345|3}} gives "Template:Scinote/S1"

For engineering notation set fn=eng.

e.g. {{scinote|12345|fn=eng}} gives "Template:Scinote/Peng1"

Trailing zeros are preserved.

e.g. {{scinote|0.001234500}} gives "Template:Scinote/e"

See also

  • {{e}}