multiply

Multiply two numbers

Definition

number multiply(number $left, number $right)

Multiplies $left and $right.

Parameters

number $left

Left factor.

number $right

Right factor.

Returns

number

The product of $left and $right.

Examples

{
  a: multiply(`3`, `4`),
  b: multiply(`3.0`, `4`),
  c: multiply(`-3.5`, `3`),
  d: multiply('3', `4`),
  e: multiply(`true`, `false`),
  f: multiply(`null`, `false`),      // Error
  g: multiply(`3`, 'four'),          // Error
  h: multiply([`0`, `1`], `2`)       // Error
}
{
  "a": 12,
  "b": 12,
  "c": -10.5,
  "d": 12,
  "e": 0
}