Template:Evalns: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>PeterSymonds
{{pp-template|small=yes}}
meta>Skier Dude
update category
Line 11: Line 11:


{{pp-template|small=yes}}
{{pp-template|small=yes}}
[[Category:Mathematical templates|{{PAGENAME}}]]
[[Category:Mathematical function templates]]
</noinclude>
</noinclude>

Revision as of 05:17, 17 September 2008

{{{{{subst|}}}#if:{{{{{subst|}}}#ifexpr:{{{{{subst|}}}#expr:{{{1}}}}}}}|({{{1}}})|{{{{{subst|}}}#expr:{{{1}}}}}}}

EVALuate, but No Scientific notation.

This template can be used to evaluate an expression, if the result has to be suitable as input for further expressions. If the output is not valid as input, the expression is just reproduced, enclosed in parentheses.

  • {{evalns|3*4}} gives 12.
  • {{evalns|1234567890*12}} gives 14814814680.
  • {{evalns|1234567890*1234567890}} gives 1.5241578750191E+18.
  • {{eval|2*{{evalns|1234567890*1234567890}}}} gives Template:Eval.