Template:Round: Difference between revisions

convert to Lua version
en>Ruslik0
(attempting to fix the pdf problem)
en>Dragons flight
(convert to Lua version)
Line 1:
<includeonly>{{#iferrorinvoke:{{#expr:{{{2}}}}}Math|{{rndnearprecision_format| {{{1}}} |1E{{#expr:{{order of magnitude|{{{12}}}}}-1}}}}|{{formatnum:</includeonly><noinclude>
{{#ifexpr:({{{1|0}}})round({{{2|0}}})>=0.0001
|{{#ifexpr:({{{1}}})round({{{2}}})<1E9
|{{#ifexpr:<!--
-->{{#expr:(({{{1}}})round({{{2}}})/1E5round0)*1E5}}={{#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)*1E5}}={{#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}}
</noinclude>
Anonymous user