diff options
Diffstat (limited to 'share/cmake-3.10/Help/command/math.rst')
-rw-r--r-- | share/cmake-3.10/Help/command/math.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/share/cmake-3.10/Help/command/math.rst b/share/cmake-3.10/Help/command/math.rst new file mode 100644 index 0000000..f99dc3d --- /dev/null +++ b/share/cmake-3.10/Help/command/math.rst @@ -0,0 +1,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. |