…num-expr… * …num-expr…
…int-expr… * …string-expr…
num1, num2 -> largest(num1, num2)
int, STRING -> STRING
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.
expression | evaluates to |
---|---|
6 * 7 | 42 |
2 * "foo" | "foofoo" |