Template:Evalns: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>CBDunkerson
Index on template name
meta>WOSlinker
docs have moved to subpage (as per request)
Line 1: Line 1:
<includeonly>{{{{{subst|}}}#if:{{{{{subst|}}}#ifexpr:{{{{{subst|}}}#expr:{{{1}}}}}}}|({{{1}}})|{{{{{subst|}}}#expr:{{{1}}}}}}}</includeonly><noinclude><pre>{{{{{subst|}}}#if:{{{{{subst|}}}#ifexpr:{{{{{subst|}}}#expr:{{{1}}}}}}}|({{{1}}})|{{{{{subst|}}}#expr:{{{1}}}}}}}</pre>
<includeonly>{{{{{subst|}}}#if:{{{{{subst|}}}#ifexpr:{{{{{subst|}}}#expr:{{{1}}}}}}}|({{{1}}})|{{{{{subst|}}}#expr:{{{1}}}}}}}</includeonly><noinclude>{{documentation}}</noinclude>
 
'''EVAL'''uate, but '''N'''o '''S'''cientific 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.
 
*<code><nowiki>{{evalns|3*4}}</nowiki></code> gives {{evalns|3*4}}.
*<code><nowiki>{{evalns|1234567890*12}}</nowiki></code> gives {{evalns|1234567890*12}}.
*<code><nowiki>{{evalns|1234567890*1234567890}}</nowiki></code> gives {{evalns|1234567890*1234567890}}.
*<code><nowiki>{{eval|2*{{evalns|1234567890*1234567890}}}}</nowiki></code> gives {{eval|2*{{evalns|1234567890*1234567890}}}}.
 
{{pp-template|small=yes}}
[[Category:Mathematical function templates|{{BASEPAGENAME}}]]
</noinclude>

Revision as of 18:26, 8 October 2010