Multiplication (*)
Multiplies two operands, after interpreting both operands as numbers.
Details
The Multiplication operator produces the product of two numerically interpreted operands. It uses any leading numeric characters as the numeric value of the operands and produces a result that is the product.
Examples
The following example performs multiplication on two numeric literals:
WRITE 9 * 5.5 // 49.5
The following example performs multiplication on two locally defined variables:
SET x = 4
SET y = 5
WRITE x * y // 20
The following example performs string arithmetic on two operands that have leading digits, multiplying the resulting numerics:
WRITE "8 apples" * "4 oranges" // 32
If an operand has no leading numeric characters, the Multiplication operator interprets it as zero.
WRITE "8 apples"*"four oranges" // 0