Multiply
Multiply( value_1, value_2, ... )
Multiply( value_1, value_2, ... )
Multiply( value_1, value_2, ... )
Multiply( value_1, value_2, ... )
multiply( value_1, value_2, ... )
multiply value_1, value_2, ...
Multiply( value_1, value_2, ... )
Multiply( value_1, value_2, ... )
Description
The Multiply
function computes the product of a list of numbers.
Providing a single number returns the number.
Attempting to call multiply without any arguments results in the error "Non-empty array expected." Check to make sure at least one argument is passed to the multiply function.
Parameters
Argument | Type | Definition and Requirements |
---|---|---|
|
List of Numbers |
A single value or a list of values. |
Examples
curl https://db.fauna.com/ \
-u fnAChGwBcAACAO70ziE0cfROosNJHdgBmJU1PgpL: \
-d '{ "multiply": [ 100, 10 ] }'
client.Query(Multiply(100, 10));
System.out.println(
client.query(Multiply(Value(100), Value(10)))
.get());
result, _ := client.Query(f.Multiply(100, 10))
fmt.Println(result)
client.query(Multiply(100, 10))
client.query(q.multiply(100, 10))
$client.query do
multiply 100, 10
end
client.query(Multiply(100, 10))
client.query(q.Multiply(100, 10))
.then((ret) => console.log(ret))
HTTP/1.1 200 OK
{ "resource": 1000 }
1000
1000
1000
1000
1000
1000
1000
1000
Was this article helpful?
We're sorry to hear that.
Tell us how we can improve!
documentation@fauna.com
Thank you for your feedback!