Difference between revisions of "Template:Rnd"

From MINR.ORG WIKI
(applying fix per Jimp.)
(reformat code per talk)
Line 1: Line 1:
<includeonly>{{rnd/e{{#expr:(abs({{{1}}}round{{{2}}})<0.0001)+(abs({{{1}}}round{{{2}}})>=100000)-({{{1}}}=0)}}|{{{1}}}|{{{2}}}}}</includeonly><noinclude>{{pp-template}}
+
<includeonly>{{formatnum:{{rnd/a|{{#expr:({{{1}}})round({{{2}}})}}|{{{2}}}}}}}</includeonly><noinclude>{{pp-template}}
 
{{template doc}}
 
{{template doc}}
 
</noinclude>
 
</noinclude>

Revision as of 08:54, 10 July 2008