Template:Significant figures/rnd: Difference between revisions

    From Nonbinary Wiki
    m>Jimp
    (add zeros after the decimal point)
    m (35 revisions imported from templatewiki:Template:Significant_figures/rnd)
     
    (16 intermediate revisions by 13 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}}}}}
     
    | -3| -4| -5=000
    Examples:
    | -6| -7| -8=000000
    *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||7|||2}}
    | -9|-10|-11=000000000
    *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||6|||2}}
    |-12|-13|-14=000000000000
    *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||5|||2}}
    |-15|-16|-17=000000000000000
    *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||4|||2}}
    |-18|-19|-20=000000000000000000
    *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||3|||2}}
    |-21|-22|-23=000000000000000000000
    *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||2|||2}}
    |-24|-25|-26=000000000000000000000000
    *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||1|||2}}
    |-27|-28|-29=000000000000000000000000000
    *{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||0|||2}}
    |-30|-31|-32=000000000000000000000000000000
     
    |-33|-34|-35=000000000000000000000000000000000
    [[Category:Subtemplates of template sigfig|rnd]]
    |-36|-37|-38=000000000000000000000000000000000000
    }}
    |-39|-40|-41=000000000000000000000000000000000000000
    </noinclude>
    |-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
    }}}}|{{sigfig/nil|{{#expr:{{{1}}}round{{{3}}}}}|{{{3}}}}}}}</includeonly>

    Latest revision as of 09:59, 16 November 2019