multiply
TABLE OF CONTENTS
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
Transformation
{
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
}Result
{
"a": 12,
"b": 12,
"c": -10.5,
"d": 12,
"e": 0
}Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article