Difference between revisions of "Template:Val/delimitnum"
Jump to navigation
Jump to search
blackwiki>Jimp m (commentary) |
blackwiki>Jimp (allow for overriding formatting if u is AD, BC, etc. also allow formatting with commas for ±10^4 & over/under) |
||
| Line 1: | Line 1: | ||
| − | <includeonly><!-- | + | <includeonly><!-- |
Test loss of precision by appending a fixed digit "1" | Test loss of precision by appending a fixed digit "1" | ||
-->{{#ifexpr:({{{1|0}}}1)=({{{1|0}}})<!-- | -->{{#ifexpr:({{{1|0}}}1)=({{{1|0}}})<!-- | ||
| Line 7: | Line 7: | ||
-->|<!-- Precision is not lost. Display the number. | -->|<!-- Precision is not lost. Display the number. | ||
| − | + | -->{{val/delimitnum/{{{fmt|gaps}}}<!-- | |
| − | + | -->{{#expr:{{{1|0}}}<0}}<!-- | |
| − | + | -->{{#expr:trunc({{{1|0}}}9)={{{1|0}}}9}}|{{{1|0}}}<!-- | |
| + | -->|u={{{u}}}<!-- | ||
| + | -->}}<!-- | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
-->}}</includeonly><noinclude>{{documentation}}</noinclude> | -->}}</includeonly><noinclude>{{documentation}}</noinclude> | ||