Template:NumberFormatPad: Difference between revisions
Jump to navigation
Jump to search
Pseudosphere (talk | contribs) (Created page with "<onlyinclude>{{#if:{{{pad|}}}|{{#vardefine:_numlen|{{#invoke:String|len|{{#number_format:{{{1}}}|0|||{{{5|}}}}}}}}}{{#vardefine:_i|{{{pad}}}}}{{#while:|{{#ifexpr:{{#var:_i}}>{{#var:_numlen}}|T}}|0{{#ifexpr:{{#var:_i}}mod3=1|{{#ifeq:{{{4}}}|n| |{{#ifeq:{{{4}}}|t| |{{{4|,}}}}}}}}}{{#vardefine:_i|{{#expr:{{#var:_i}}-1}}}}}}}}{{#number_format:{{{1}}}|{{{2|0}}}|{{{3|.}}}|{{{4|,}}}|{{{5|}}}}}</onlyinclude> * {{NumberFormatPad|0|pad=1}} * {{NumberFormatPad|1|pad=1}...") |
Pseudosphere (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude>{{#if:{{{pad|}}}|{{#vardefine:_numlen|{{#invoke:String|len|{{#number_format:{{{1}}}|0|||{{{5|}}}}}}}}}{{# | <onlyinclude>{{#if:{{{pad|}}}|{{#vardefine:_numlen|{{#invoke:String|len|{{#number_format:{{{1}}}|0|||{{{5|}}}}}}}}}{{#loop:_i|{{{pad}}}|{{#expr:{{#var:_numlen}}-{{{pad}}}}}|0{{#ifexpr:{{#var:_i}}mod3=1|{{#ifeq:{{{4}}}|n| |{{#ifeq:{{{4}}}|t| |{{{4|,}}}}}}}}}{{#vardefine:_i|{{#expr:{{#var:_i}}-1}}}}}}}}{{#number_format:{{{1}}}|{{{2|0}}}|{{{3|.}}}|{{{4|,}}}|{{{5|}}}}}</onlyinclude> | ||
* {{NumberFormatPad|0|pad=1}} | * {{NumberFormatPad|0|pad=1}} |
Revision as of 22:04, 10 September 2024
1
- 0
- 1
- 00
- 01
- 12
- 000
- 001
- 012
- 123
- 0,000
- 0,001
- 0,012
- 0,123
- 1,234
- 00,000
- 00,001
- 00,012
- 00,123
- 01,234
- 12,345
- 000,000
- 000,001
- 000,012
- 000,123
- 001,234
- 012,345
- 123.456,7891235
- 0.000.098,7891234560
- 0,000,001
- 0,000,012
- 0,000,123
- 0,001,234
- 0 012 345.68
- 0 123 456.79
- 1,234,567