Difference between revisions of "MetricFormat"
From Sega Retro
Line 1: | Line 1: | ||
{{#ifexpr:{{{1}}} > 1000|{{#vardefine:mvalue|{{#expr:{{{1}}} / 1000}}}}{{#vardefine:munit|k{{{2}}}}}|{{ | {{#ifexpr:{{{1}}} > 1000|{{#vardefine:mvalue|{{#expr:{{{1}}} / 1000}}}}{{#vardefine:munit|k{{{2}}}}}|{{ | ||
− | #ifexpr:{{{1}}} > 1|{{#vardefine:mvalue|{{{ | + | #ifexpr:{{{1}}} > 1|{{#vardefine:mvalue|{{{1}}}}}{{#vardefine:munit|{{{2}}}}}|{{ |
#ifexpr:{{{1}}} > 0.001|{{#vardefine:mvalue|{{#expr:{{{1}}} * 1000}}}}{{#vardefine:munit|m{{{2}}}}}|{{ | #ifexpr:{{{1}}} > 0.001|{{#vardefine:mvalue|{{#expr:{{{1}}} * 1000}}}}{{#vardefine:munit|m{{{2}}}}}|{{ | ||
#ifexpr:{{{1}}} > 0.000001|{{#vardefine:mvalue|{{#expr:{{{1}}} * 1000000}}}}{{#vardefine:munit|μ{{{2}}}}}|{{ | #ifexpr:{{{1}}} > 0.000001|{{#vardefine:mvalue|{{#expr:{{{1}}} * 1000000}}}}{{#vardefine:munit|μ{{{2}}}}}|{{ | ||
#ifexpr:{{{1}}} > 0.000000001|{{#vardefine:mvalue|{{#expr:{{{1}}} * 1000000000}}}}{{#vardefine:munit|n{{{2}}}}} | #ifexpr:{{{1}}} > 0.000000001|{{#vardefine:mvalue|{{#expr:{{{1}}} * 1000000000}}}}{{#vardefine:munit|n{{{2}}}}} | ||
|}}}}}}}}}}<noinclude>[[Category:Sega Retro templates]]</noinclude> | |}}}}}}}}}}<noinclude>[[Category:Sega Retro templates]]</noinclude> |
Revision as of 16:08, 21 December 2017
Expression error: Unrecognized punctuation character "{".