math()

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.

© 2000–2017 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.8/command/math.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部