Template:Div col end and Template:Format price: Difference between pages
(Difference between pages)
m (1 revision imported) |
>DMacks m (Changed protection level of Template:Format price: Highly visible template: Switching to template-editor (vs full) now that this right exists. Requested at RFPP ([Edit=Require template editor access] (indefinite) [Move=Requir...) |
||
Line 1: | Line 1: | ||
< | {{#iferror:{{ | ||
{{ | #ifexpr:({{{1}}} >= 1E+27) | ||
| {{formatnum:{{Format price/digits|{{#expr:{{{1}}} / 1E+27}}}}}} octillion}}{{ | |||
#ifexpr:(({{{1}}} >= 1E+24) and ({{{1}}} < 1E+27)) | |||
| {{Format price/digits|{{#expr:{{{1}}} / 1E+24}}}} septillion}}{{ | |||
#ifexpr:(({{{1}}} >= 1E+21) and ({{{1}}} < 1E+24)) | |||
| {{Format price/digits|{{#expr:{{{1}}} / 1E+21}}}} sextillion}}{{ | |||
#ifexpr:(({{{1}}} >= 1E+18) and ({{{1}}} < 1E+21)) | |||
| {{Format price/digits|{{#expr:{{{1}}} / 1E+18}}}} quintillion}}{{ | |||
#ifexpr:(({{{1}}} >= 1E+15) and ({{{1}}} < 1E+18)) | |||
| {{Format price/digits|{{#expr:{{{1}}} / 1E+15}}}} quadrillion}}{{ | |||
#ifexpr:(({{{1}}} >= 1E+12) and ({{{1}}} < 1E+15)) | |||
| {{Format price/digits|{{#expr:{{{1}}} / 1E+12}}}} trillion}}{{ | |||
#ifexpr:(({{{1}}} >= 1E+9) and ({{{1}}} < 1E+12)) | |||
| {{Format price/digits|{{#expr:{{{1}}} / 1E+9}}}} billion}}{{ | |||
#ifexpr:(({{{1}}} >= 1E+6) and ({{{1}}} < 1E+9)) | |||
| {{Format price/digits|{{#expr:{{{1}}} / 1E+6}}}} million}}{{ | |||
#ifexpr:(({{{1}}} >= 1E+3) and ({{{1}}} < 1E+6)) | |||
| {{Format price/digits|{{#expr:{{{1}}} / 1E+3}}}} thousand}}{{ | |||
#ifexpr:(({{{1}}} >= 0) and ({{{1}}} < 1E+3)) | |||
| {{formatnum:{{#expr:{{{1|}}} round {{{2|2}}}}}}}{{#ifexpr:(({{{2|2}}} = 1) or ({{{2|2}}} = 2))|{{#ifexpr:((((({{{1|}}} round {{{2|2}}})*100) round 1) mod 100) = 0)|.00|{{#ifexpr:((((({{{1|}}} round {{{2|2}}})*100) round 1) mod 10) = 0)|0}}}}}}}}{{ | |||
#ifexpr:({{{1|}}} < 0)|[[NaN]]}}|[[NaN]]}}<noinclude> | |||
{{documentation}} | |||
</noinclude> | </noinclude> |