Difference between revisions of "FormatNumber"
From Sonic Retro
(Created page with "<includeonly>{{#vardefine:i|{{#len:{{{1|}}}}}}}{{#while: |{{#ifexpr:{{#var:i}} > 0|true}} |{{ #sub:{{{1|}}}|-{{#var:i}}|1}}{{#ifexpr:{{#var:i}} > 3|{{#ifexpr:({{#var:i}}-1) mo...") |
BSonirachi (talk | contribs) m (Text replacement - "Category:Sonic Retro templates" to "Category:Templates") |
||
Line 12: | Line 12: | ||
*1234567890 -> {{FormatNumber|1234567890}} | *1234567890 -> {{FormatNumber|1234567890}} | ||
− | [[Category: | + | [[Category:Templates]]</noinclude> |
Latest revision as of 19:17, 1 January 2022
A means of inserting commas into long numbers to denote thousands
Examples
- 1234567 -> 1,234,567
- 12345678 -> 12,345,678
- 123456789 -> 123,456,789
- 1234567890 -> 1,234,567,890