Difference between revisions of "Template:Number table sorting"

From blackwiki
Jump to navigation Jump to search
test>Patrick
(avoid scientific notation)
test>Patrick
(pad with 0)
Line 1: Line 1:
<includeonly><span style="{{#ifeq:{{{debug|}}}|yes|border:1px solid|display:none}}">&{{#expr:(({{{1}}}/1e15-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e14-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e13-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e12-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e11-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e10-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e9-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e8-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e7-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e6-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e5-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e4-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e3-.5) round 0) mod 10}}{{#expr:(({{{1}}}/100-.5) round 0) mod 10}}{{#expr:(({{{1}}}/10-.5) round 0) mod 10}}{{#expr:(({{{1}}}-.5) round 0) mod 10}}.{{padleft:{{#expr:(1000000*({{{1}}}- ({{#ifexpr:({{{1}}}-0.5)=-0.5|0|{{#expr:({{{1}}}-0.5) round 0}}}}))) round 0}}|6|&}}</span>{{formatnum:{{{1}}}}}</includeonly><noinclude>
+
<includeonly><span style="{{#ifeq:{{{debug|}}}|yes|border:1px solid|display:none}}">&{{#expr:(({{{1}}}/1e15-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e14-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e13-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e12-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e11-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e10-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e9-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e8-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e7-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e6-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e5-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e4-.5) round 0) mod 10}}{{#expr:(({{{1}}}/1e3-.5) round 0) mod 10}}{{#expr:(({{{1}}}/100-.5) round 0) mod 10}}{{#expr:(({{{1}}}/10-.5) round 0) mod 10}}{{#expr:(({{{1}}}-.5) round 0) mod 10}}.{{padleft:{{#expr:(1000000*({{{1}}}- ({{#ifexpr:({{{1}}}-0.5)=-0.5|0|{{#expr:({{{1}}}-0.5) round 0}}}}))) round 0}}|6|0}}</span>{{formatnum:{{{1}}}}}</includeonly><noinclude>
 
{{template doc}}
 
{{template doc}}
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 07:53, 11 May 2008

Template documentation[create]