Multipliction is used to multiply several values. To multiply values the *
operator is used.
The values can be of the following type:
- number
- duration
Syntax
Value1 * Value2 (* Value3, * Value4 *...)
Returns
A new value that is the result of multiplying value1
and value2
. The type of the value is dependant on the types of value1
and value2
:
- number * number returns a number
- number * duration returns a duration
- duration * duration returns a duration
Examples
6 * 7 /* results in 42 */
8 * 0 /* results in 0 */