Difference between revisions of "Template:Rnd"

From Teampedia
Jump to: navigation, search
(Replaced content with "<includeonly>{{formatnum:{{rnd/a|{{#expr:({{{1}}})round({{{2}}})}}|{{{2}}}|{{#expr:{{{2}}}>0}}}}}}</includeonly>")
 
Line 1: Line 1:
{{formatnum:{{#ifexpr:(({{{1|-1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})>=0.0001
+
<includeonly>{{formatnum:{{rnd/a|{{#expr:({{{1}}})round({{{2}}})}}|{{{2}}}|{{#expr:{{{2}}}>0}}}}}}</includeonly>
| {{#ifexpr:(({{{1|1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})<1E9
+
  | {{#ifexpr:((({{{1|1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})E-5round0)E5=(({{{1|1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})
+
    | {{#ifexpr:({{{2|0.01}}})round0=({{{2|0.01}}})
+
      | {{#expr:(({{{1|1234.5678}}})/({{{2|1}}})round0)*({{{2|1}}}E-5}})00000
+
      | {{#expr:(({{{1|1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})E-5}}0000{{Rnd/-|0|{{Precision|{{{2|0.01}}}}}}}
+
      }}
+
    | {{#ifexpr:({{{2|0.01}}})round0=({{{2|0.01}}})
+
      | {{#expr:(({{{1|1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})}}
+
      | {{Rnd/-|{{#expr:(({{{1|1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})}}|{{Precision|{{{2|0.01}}}}}}}
+
      }}
+
    }}
+
  | {{Rnd/e+|{{#expr:(({{{1|1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})}}|{{Precision|{{{2|0.01}}}}}|{{Order of magnitude|{{#expr:(({{{1|1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})}}}}}}
+
  }}
+
| {{#ifexpr:(({{{1|-1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})<=-0.0001
+
  | {{#ifexpr:(({{{1|-1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})>-1E9
+
    | {{#ifexpr:((({{{1|-1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})E-5round0)E5=(({{{1|-1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})
+
      | {{#ifexpr:({{{2|0.01}}})round0=({{{2|0.01}}})
+
        | {{#expr:(-({{{1|-1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})E-5}}00000
+
        | −{{#expr:(-({{{1|-1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})E-5}}0000{{Rnd/-|0|{{Precision|{{{2|0.01}}}}}}}
+
        }}
+
      | {{#ifexpr:({{{2|0.01}}})round0=({{{2|0.01}}})
+
        | −{{#expr:(-({{{1|-1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})}}
+
        | −{{Rnd/-|{{#expr:(-({{{1|-1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})}}|{{Precision|{{{2|0.01}}}}}}}
+
        }}
+
      }}
+
    | −{{Rnd/e+|{{#expr:(-({{{1|-1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})}}|{{Precision|{{{2|0.01}}}}}|{{Order of magnitude|{{#expr:(-({{{1|-1234.5678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})}}}}}}
+
    }}
+
  | {{#ifexpr:(({{{1|-0.005678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})=0
+
    | {{#ifexpr:({{{2|0.01}}})round0=({{{2|0.01}}})
+
      | 0
+
      | {{Rnd/-|0|{{Precision|{{{2|0.01}}}}}}}
+
      }}
+
    | {{#ifexpr:(({{{1|-.005678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})>0
+
      | {{Rnd/e−|{{#expr:(({{{1|.005678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})}}|{{Precision|{{{2|0.01}}}}}|{{Order of magnitude|(({{{1|-.005678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})}}}}
+
      | −{{Rnd/e−|{{#expr:(-({{{1|-.005678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})}}|{{Precision|{{{2|0.01}}}}}|{{Order of magnitude|{{#expr:(-({{{1|-.005678}}})/({{{2|0.01}}})round0)*({{{2|0.01}}})}}}}}}
+
      }}
+
    }}
+
  }}
+
}}}}<noinclude>{{Documentation}}</noinclude>
+

Latest revision as of 15:05, 11 April 2020