Mathematical Operations
A how-to guide showing mathematical operations in WOQL
WOQL has a number of mathematical operations that can be performed. These include, plus
, minus
, divide
, times
, div
(for integer division), exp
and floor
.
To use these operations you need to evaluate
an arithmetic expression, and then you will be able to bind the result to a variable.
For instance:
This will store the value of 2 times 3 in the variable result
. The bindings which result from this query are:
You can also chain these together, to build up more complicated computations, or use the results obtained by queries to derive new values.
Which results in:
Last updated