Hopp til innhold

Mal:Evalp

Fra Wikibøker – frie læremidler

{{{{{subst|}}}#expr:{{{1}}}}}

Feilhåndtering:

  • {{evalp|2*{{evalp|1234567890*1234567890|(inner expression)}}|(outer expression)}} gives [expression "2*1.5241578750191E+18

</noinclude>" (outer expression) gives system message "Uttrykksfeil: Ugjenkjennelig skilletegn «[»"]

</noinclude>.

  • {{evalp|2*{{evalp|12*1234567890|(inner expression)}}|(outer expression)}} gives [expression "2*14814814680

</noinclude>" (outer expression) gives system message "Uttrykksfeil: Ugjenkjennelig skilletegn «[»"]

</noinclude>.

{{subst:evalp|2*14814814680|(outer expression)|subst=subst:}} gir wikiteksten 29629629360.

Debuggingsmodus:

  • {{evalp|12/1234567890|(inner expression)|d=d}} gir [expression "12/1234567890" (inner expression) gives the result "9.720000088452E-9"]

</noinclude>.

  • {{evalp|2*{{evalp|1234567890*1234567890|(inner expression)|d=d}}|(outer expression)|d=d}} gir [expression "2*[expression "1234567890*1234567890" (inner expression) gives the result "1.5241578750191E+18"]

</noinclude>" (outer expression) gives system message "Uttrykksfeil: Ugjenkjennelig skilletegn «[»"]

</noinclude>.


Mal fra MetaWiki:Template:Evalp