mirror of
https://github.com/reactos/CMake.git
synced 2024-12-01 15:30:40 +00:00
15 lines
401 B
ReStructuredText
15 lines
401 B
ReStructuredText
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.
|