Template:Val/delimitnum: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Jimp No edit summary |
meta>Jimp trailing zeros for fmt=commas |
||
Line 45: | Line 45: | ||
Format using commas to the left. | Format using commas to the left. | ||
-->|{{formatnum:{{#expr:abs{{{1}}}}}}}<!-- | |||
Test whether the number is an integer. | |||
-->|{{#ifexpr:trunc({{{1|0}}}9)={{{1|0}}}9 | |||
|{{formatnum:{{#expr:abs{{{1}}}}}}} | |||
|{{formatnum:{{#expr:trunc(abs{{{1}}})}}}}<!-- | |||
-->{{padright:{{Str right|{{#expr:abs({{{1|0}}})-trunc(abs({{{1|0}}}))}}|1}}<!-- | |||
-->|{{#expr:(-ln(abs({{{1|0}}}1)-abs({{{1|0}}}))/ln10round 0)}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
-->}}</includeonly><noinclude>{{documentation}}</noinclude> | -->}}</includeonly><noinclude>{{documentation}}</noinclude> |