Difference between revisions of "Template:Rnd"

From Teampedia
Jump to: navigation, search
(Created page with "<includeonly>{{#iferror:{{#expr:{{{2}}}}}|{{rndnear|{{{1}}}|1E{{#expr:{{order of magnitude|{{{1}}}}}-1}}}}|{{formatnum: {{#ifexpr:({{{1|0}}})round({{{2|0}}})>=0.0001 |...")
 
(Replaced content with "<includeonly>{{#iferror:{{#expr:{{{2|0}}}}} | | {{{1}}} | 1-{{ordomag|{{{1}}}}} }}| | {{{1}}} | {{{2|0}}}}}}}</includeonly><noinclude> {{documentation}} </noinclude>")
Line 1: Line 1:
<includeonly>{{#iferror:{{#expr:{{{2}}}}}|{{rndnear|{{{1}}}|1E{{#expr:{{order of magnitude|{{{1}}}}}-1}}}}|{{formatnum:
+
<includeonly>{{#iferror:{{#expr:{{{2|0}}}}} |
  {{#ifexpr:({{{1|0}}})round({{{2|0}}})>=0.0001
+
  | {{{1}}} | 1-{{ordomag|{{{1}}}}} }}|
    |{{#ifexpr:({{{1}}})round({{{2}}})<1E9
+
| {{{1}}} | {{{2|0}}}}}}}</includeonly><noinclude>
        |{{#ifexpr:<!--
+
-->{{#expr:(({{{1}}})round({{{2}}})/1E5round0)E5}}={{#expr:({{{1}}})round({{{2}}})}}
+
          |{{#ifexpr:{{{2}}}<=0
+
              |{{#expr:({{{1}}})round({{{2}}})E-5}}00000
+
              |{{#expr:({{{1}}})round({{{2}}})E-5}}0000{{rnd/-|0|{{{2}}}}}
+
            }}
+
          |{{#ifexpr:{{{2}}}<=0
+
              |{{#expr:({{{1}}})round({{{2}}})}}
+
              |{{rnd/-|{{#expr:({{{1}}})round({{{2}}})}}|{{{2}}}}}
+
            }}
+
        }}
+
        |{{rnd/e+
+
          |{{#expr:({{{1}}})round({{{2}}})}}
+
          |{{{2}}}
+
          |{{Order of magnitude|{{#expr:({{{1}}})round({{{2}}})}}}}}}
+
      }}
+
    |{{#ifexpr:({{{1|0}}})round({{{2|0}}})<=-0.0001
+
        |{{#ifexpr:({{{1}}})round({{{2}}})>-1E9
+
          |{{#ifexpr:<!--
+
-->{{#expr:(({{{1}}})round({{{2}}})/1E5round0)E5}}={{#expr:({{{1}}})round({{{2}}})}}
+
              |{{#ifexpr:{{{2}}}<=0
+
                |−{{#expr:-({{{1}}})round({{{2}}})E-5}}00000
+
                |−{{#expr:-({{{1}}})round({{{2}}})E-5}}0000{{rnd/-|0|{{{2}}}}}
+
              }}
+
              |{{#ifexpr:{{{2}}}<=0
+
                |−{{#expr:-({{{1}}})round({{{2}}})}}
+
                |−{{rnd/-|-{{#expr:({{{1}}})round({{{2}}})}}|{{{2}}}}}
+
              }}
+
            }}
+
          |−{{rnd/e+
+
              |-{{#expr:({{{1}}})round({{{2}}})}}
+
              |{{{2}}}
+
              |{{Order of magnitude|{{#expr:({{{1}}})round({{{2}}})}}}}}}
+
        }}
+
        |{{#ifexpr:({{{1|0}}})round({{{2|0}}})=0
+
          |{{#ifexpr:{{{2|0}}}<=0
+
              |0
+
              |{{rnd/-|0|{{{2}}}}}
+
            }}
+
          |{{#ifexpr:({{{1}}})round({{{2}}})>0
+
              |{{rnd/e−
+
                |{{#expr:({{{1}}})round({{{2}}})}}
+
                |{{{2}}}
+
                |{{Order of magnitude|({{{1}}})round({{{2}}})}}
+
              }}
+
              |−{{rnd/e−
+
                |-{{#expr:({{{1}}})round({{{2}}})}}
+
                |{{{2}}}
+
                |{{Order of magnitude|{{#expr:({{{1}}})round({{{2}}})}}}}
+
              }}
+
            }}
+
        }}
+
      }}
+
  }}
+
}}}}</includeonly><noinclude>
+
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 00:31, 11 April 2020

[view] [edit] [history] [purge] Documentation icon Template documentation

Usage

See also

The above documentation is transcluded from Template:Rnd/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.