Multiplication

Syntax

…num-expr… * …num-expr…

…int-expr… * …string-expr…

Typing

num1, num2 -> largest(num1, num2)

int, STRING -> STRING

Description

Multiplies two numeric values, or repeat a string.

If the two operands are numeric, then the result type is the largest of the operand types.

Alternatively, can also be used to repeat a string if the first operand is an integer and the second a string. In that case the return type is a string.

Examples

expression evaluates to
6 * 7 42
2 * "foo" "foofoo"

See Also

Addition Division Integer division Power Subtraction