Template:Evalns: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Skier Dude
(update category)
meta>CBDunkerson
(Index on template name)
Line 11: Line 11:


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

Revision as of 13:14, 7 October 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.