Codex Gamicus
m (Protected "Template:Format price" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
<noinclude>
{{#iferror:{{
 
  +
{{Pp-template|small=yes}}
 
</noinclude>{{#iferror:{{
 
#ifexpr:({{{1}}} >= 1E+27)
 
#ifexpr:({{{1}}} >= 1E+27)
 
| {{formatnum:{{Format price/digits|{{#expr:{{{1}}} / 1E+27}}}}}}&nbsp;octillion}}{{
 
| {{formatnum:{{Format price/digits|{{#expr:{{{1}}} / 1E+27}}}}}}&nbsp;octillion}}{{
Line 21: Line 23:
 
| {{formatnum:{{#expr:{{{1}}} round {{{2|2}}}}}}}{{#ifexpr:(({{{2|2}}} = 1) or ({{{2|2}}} = 2))|{{#ifexpr:(((({{{1}}} round {{{2|2}}})*100) mod 100) = 0)|.00|{{#ifexpr:(((({{{1}}} round {{{2|2}}})*100) mod 10) = 0)|0}}}}}}}}{{
 
| {{formatnum:{{#expr:{{{1}}} round {{{2|2}}}}}}}{{#ifexpr:(({{{2|2}}} = 1) or ({{{2|2}}} = 2))|{{#ifexpr:(((({{{1}}} round {{{2|2}}})*100) mod 100) = 0)|.00|{{#ifexpr:(((({{{1}}} round {{{2|2}}})*100) mod 10) = 0)|0}}}}}}}}{{
 
#ifexpr:({{{1}}} < 0)|[[NaN]]}}|[[NaN]]}}<noinclude>
 
#ifexpr:({{{1}}} < 0)|[[NaN]]}}|[[NaN]]}}<noinclude>
{{documentation}}
+
{{Documentation}}
  +
[[Category:Function templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 14:19, 19 October 2018

NaN

Template documentation (for the template shown above, sometimes hidden or invisible)
Template:Format price/doc

Visit Template:Format price/doc to edit this text! (How does this work?)