1
Mathematical Functions and Operators
2
====================================
4
Mathematical operators are provided for many Drizzle types.
6
======== ================== ============ ======
7
Operator Description Example Result
8
======== ================== ============ ======
9
``+`` addition ``2 + 3`` 5
10
``-`` subtraction ``2 - 3`` -1
11
``*`` multiplication ``2 * 3`` 6
12
``/`` division ``4 / 2`` 2
13
``%`` modulo (remainder) ``5 % 4`` 1
14
``|/`` square root ``|/ 25.0`` 5
15
``||/`` cube root ``||/ 27.0`` 3
16
``!`` factorial ``5 !`` 120
17
``!!`` factorial ``!! 5`` 120
18
``@`` absolute value ``@ -5.0`` 5
19
======== ================== ============ ======