Template:SI prefix

From Kerbal Space Program Wiki
Revision as of 23:46, 20 April 2014 by XZise (talk | contribs) (Created page with "<includeonly>{{#switch: {{#ifexpr: {{{1}}}<1e-9|-9|{{#ifexpr: {{{1}}}>1e12|12|{{#expr: floor(ln {{{1}}}/ln 10)}}}}}} |-9 |-8 |-7 = {{#expr: {{{1}}}*1000000000 round {{{2|2}}}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns the value with the corresponding SI prefix. Only the unit needs to be added. Supports the prefixes from nano (10⁻⁹) to tera (10⁺¹²), except deca (10¹) and hecto (10²). It round to the number of places given in the second parameter which defaults to 2.