6.0

Table Of Contents
117
lineto(1.5,2) %Draw first line
lineto(0.5,2) %Draw second line
closepath() %Close shape
stroke() %Draw shape
Mul (function)
Multiplies two expressions. This is the functional equivalent of the * operator.
Syntax
mul( expression, expression2 ) integer, measure, currency value
Arguments
expression1, expression2 — Integer, measure or currency values. Both expressions must be of the same
type. The returned value is set accordingly to the type of the parameters.
Code Sample Examples
Examples 1 and 2 show both ways of multiplying numbers.
Example 1
show(inttostr(2*2)) %Displays 4
Example 2
show(floattostr(mul(4.7,2.1))) %Displays 9.87
NE (function)
Compares two expressions of any type and returns true if they are not equal, false otherwise. This is the
functional equivalent to the <> operator.
Syntax
ne( expression1, expression2 ) Boolean value
Arguments
expression1, expression2 — Values of any type. Both expressions must be of the same type.
Code Sample Examples
Examples 1 and 2 show both ways of comparing two expressions.