Template:Round: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
en>Jimp |
m (1 revision imported from wikipedia:Template:Round) |
||
(52 intermediate revisions by 21 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{safesubst<noinclude/>:#iferror:{{#expr:{{{2|0}}}}} | |
|||
<!--{{rnd/0{{#expr:{{{2}}}>0}}|{{{1}}}|{{{2}}}}}--><includeonly>{{#ifeq:{{#expr:{{{2}}}round0}}|{{#expr:{{{2}}}}}|{{#ifexpr:{{{2}}}<-3|{{rnd/+ |
|||
{{main other|[[Category:Pages with bad rounding precision]]}}{{hid|Bad rounding here}}<!-- |
|||
|{{{1}}} |
|||
-->{{safesubst<noinclude/>:#invoke:Math|precision_format| {{{1}}} | 1-{{order of magnitude|{{{1}}}}} }}| |
|||
|(-({{{2}}}))mod3 |
|||
{{safesubst<noinclude/>:#invoke:Math|precision_format| {{{1}}} | {{{2|0}}}}}}}</includeonly><noinclude> |
|||
|{{#switch:{{#expr:{{{2}}}}} |
|||
{{documentation}} |
|||
| -3| -4| -5=000 |
|||
</noinclude> |
|||
| -6| -7| -8=000000 |
|||
| -9|-10|-11=000000000 |
|||
|-12|-13|-14=000000000000 |
|||
|-15|-16|-17=000000000000000 |
|||
|-18|-19|-20=000000000000000000 |
|||
|-21|-22|-23=000000000000000000000 |
|||
|-24|-25|-26=000000000000000000000000 |
|||
|-27|-28|-29=000000000000000000000000000 |
|||
|-30|-31|-32=000000000000000000000000000000 |
|||
|-33|-34|-35=000000000000000000000000000000000 |
|||
|-36|-37|-38=000000000000000000000000000000000000 |
|||
|-39|-40|-41=000000000000000000000000000000000000000 |
|||
|-42|-43|-44=000000000000000000000000000000000000000000 |
|||
|-45|-46|-47=000000000000000000000000000000000000000000000 |
|||
|-48|-49|-50=000000000000000000000000000000000000000000000000 |
|||
|-51|-52|-53=000000000000000000000000000000000000000000000000000 |
|||
|-54|-55|-56=000000000000000000000000000000000000000000000000000000 |
|||
|-57|-58|-59=000000000000000000000000000000000000000000000000000000000 |
|||
|-60|-61|-62=000000000000000000000000000000000000000000000000000000000000 |
|||
}}}}|{{rnd/-|{{#expr:{{{1}}}round{{{2}}}}}|{{{2}}}}}}}|{{#expr:{{{1}}}}}}}</includeonly><noinclude>This template rounds {{{1}}} to {{{2}}} decimal places (goes the other way for negatives), includes trailing zeros & avoids E notation.</noinclude> |
Latest revision as of 23:27, 31 October 2022
Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.