summaryrefslogtreecommitdiff
path: root/Help/command/math.rst
blob: f99dc3db3d81285e108f55a82fc914da358a06f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
math
----

Mathematical expressions.

::

  math(EXPR <output-variable> <math-expression>)

``EXPR`` evaluates mathematical expression and returns result in the
output variable.  Example mathematical expression is ``5 * (10 + 13)``.
Supported operators are ``+``, ``-``, ``*``, ``/``, ``%``, ``|``, ``&``,
``^``, ``~``, ``<<``, ``>>``, and ``(...)``.  They have the same meaning
as they do in C code.