Operator * (Multiply)

Multiplies two numbers together

Usage

left_value * right_value

Parameters

left_value

(Required) Value to multiply

right_value

(Required) Value to multiply by

Examples

Example With these variables Result

price * 1.1

price is 9

9.9

price * amount

price is 4.3
amount is 10

43

5 + 10 * 2

(None)

25

(5 + 10) * 2

(None)

30

4 * 5 / 2

(None)

10

More information

Multiple operators can be used. The order of operation is the same as in mathematics:

  • content of parentheses is evaluated first
  • then exponents are evaluated, from right to left
  • then multiplication and division are evaluated, from left to right
  • the remaining operators are then applied from left to right

Reminders

A text containing digits is not handled as a number. To have an actual number:

  • use the @NUMBER_QUESTION to set the variable
  • write a numeric value directly in the code without quotes, ex: age >= 18
  • use a function which converts to a number: NUMBER(text_containing_numbers)
  • use a function which returns a number: FIND("world", "hello everybody")

See also