|
|
(17 intermediate revisions by 10 users not shown) |
Line 1: |
Line 1: |
− | <includeonly>{{#ifexpr:{{{3}}}<-3|{{Sigfig/mil | + | <includeonly>{{rnd|{{{1}}}|{{{2}}}-{{{3}}}-1}}</includeonly><noinclude> |
− | |{{{1}}} | + | {{doc|content= |
− | |(-{{{3}}})mod3
| + | A rounding subtemplate, it calls {{tl|rnd}}. |
− | |{{#switch:{{#expr:-(-{{{3}}})mod3-{{{3}}}}}
| + | |
− | | 3=000 | + | Examples: |
− | | 6=000000 | + | *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||7|||2}} |
− | | 9=000000000 | + | *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||6|||2}} |
− | |12=000000000000 | + | *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||5|||2}} |
− | |15=000000000000000 | + | *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||4|||2}} |
− | |18=000000000000000000 | + | *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||3|||2}} |
− | |21=000000000000000000000 | + | *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||2|||2}} |
− | |24=000000000000000000000000 | + | *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||1|||2}} |
− | |27=000000000000000000000000000 | + | *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||0|||2}} |
− | |30=000000000000000000000000000000 | + | |
− | |33=000000000000000000000000000000000 | + | [[Category:Subtemplates of template sigfig|rnd]] |
− | |36=000000000000000000000000000000000000 | |
− | |42=000000000000000000000000000000000000000 | |
− | |45=000000000000000000000000000000000000000000 | |
− | |48=000000000000000000000000000000000000000000000 | |
− | |51=000000000000000000000000000000000000000000000000 | |
− | |54=000000000000000000000000000000000000000000000000000 | |
− | |57=000000000000000000000000000000000000000000000000000000 | |
− | |60=000000000000000000000000000000000000000000000000000000000 | |
− | }}}}|{{#expr:{{{1}}}round{{{3}}}}}}} | |
− | **{{{3}}}{{#switch:{{#expr:{{{3}}}}}
| |
− | | -3| -4| -5=000 | |
− | | -6| -7| -8=000000 | |
− | | 9=000000000 | |
− | |12=000000000000 | |
− | |15=000000000000000 | |
− | |18=000000000000000000 | |
− | |21=000000000000000000000 | |
− | |24=000000000000000000000000 | |
− | |27=000000000000000000000000000 | |
− | |30=000000000000000000000000000000 | |
− | |33=000000000000000000000000000000000 | |
− | |36=000000000000000000000000000000000000 | |
− | |42=000000000000000000000000000000000000000 | |
− | |45=000000000000000000000000000000000000000000 | |
− | |48=000000000000000000000000000000000000000000000 | |
− | |51=000000000000000000000000000000000000000000000000 | |
− | |54=000000000000000000000000000000000000000000000000000 | |
− | |57=000000000000000000000000000000000000000000000000000000
| |
− | |60=000000000000000000000000000000000000000000000000000000000 | |
| }} | | }} |
− | </includeonly> | + | </noinclude> |