Difference between revisions of "Template:Formatprice"

From MidsouthMakers - Memphis Area Hackerpace
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>{{pp-template}}{{intricate}}</noinclude><includeonly>{{#iferror:{{
+
#REDIRECT [[Template:Format price]]
#ifexpr:({{{1}}} >= 1E+27)
 
| {{formatnum:{{Formatprice/digits|{{#expr:{{{1}}} / 1E+27}}}}}}&nbsp;octillion}}{{
 
#ifexpr:(({{{1}}} >= 1E+24) and ({{{1}}} < 1E+27))
 
| {{Formatprice/digits|{{#expr:{{{1}}} / 1E+24}}}}&nbsp;septillion}}{{
 
#ifexpr:(({{{1}}} >= 1E+21) and ({{{1}}} < 1E+24))
 
| {{Formatprice/digits|{{#expr:{{{1}}} / 1E+21}}}}&nbsp;sextillion}}{{
 
#ifexpr:(({{{1}}} >= 1E+18) and ({{{1}}} < 1E+21))
 
| {{Formatprice/digits|{{#expr:{{{1}}} / 1E+18}}}}&nbsp;quintillion}}{{
 
#ifexpr:(({{{1}}} >= 1E+15) and ({{{1}}} < 1E+18))
 
| {{Formatprice/digits|{{#expr:{{{1}}} / 1E+15}}}}&nbsp;quadrillion}}{{
 
#ifexpr:(({{{1}}} >= 1E+12) and ({{{1}}} < 1E+15))
 
| {{Formatprice/digits|{{#expr:{{{1}}} / 1E+12}}}}&nbsp;trillion}}{{
 
#ifexpr:(({{{1}}} >= 1E+9) and ({{{1}}} < 1E+12))
 
| {{Formatprice/digits|{{#expr:{{{1}}} / 1E+9}}}}&nbsp;billion}}{{
 
#ifexpr:(({{{1}}} >= 1E+6) and ({{{1}}} < 1E+9))
 
| {{Formatprice/digits|{{#expr:{{{1}}} / 1E+6}}}}&nbsp;million}}{{
 
#ifexpr:(({{{1}}} >= 1E+3) and ({{{1}}} < 1E+6))
 
| {{Formatprice/digits|{{#expr:{{{1}}} / 1E+3}}}}&nbsp;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) mod 100) = 0)|.00|{{#ifexpr:(((({{{1}}} round {{{2|2}}})*100) mod 10) = 0)|0}}}}}}}}{{
 
#ifexpr:({{{1}}} < 0)|[[NaN]]}}|[[NaN]]}}</includeonly><noinclude>{{documentation}}</noinclude>
 

Latest revision as of 21:10, 8 August 2010