L3DT users' wiki
Large 3D terrain generator

mul

Description

Multiply one number by another.

Function prototype

variant mul <variant:arg1> <variant:arg2>

Arguments

Name Type Comment
arg1 variant The first number to be multiplied.
arg2 variant The second number to be multiplied.

If the type of arg1 is not equal to that of arg2, the ordering of the arguments may change the result of calls to mul. See comments for add.

Return value

The value of arg1 multiplied by arg2, in the data type of arg1.

Example

echo <zs:mul 2 5>

… the output of which is written to the event log by echo as:

10

Comments

None.

See also

 
plugins/general/zeoscript/reference/functions/mul.txt · Last modified: 2017/08/31 07:02 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki