MathTop
文档
/
函数参考
trunc 函数
将数值表达式朝零方向截断。
语法
trunc(expr)
参数与选项
expr
要变换或求值的表达式。
示例
截断小数
trunc(-7/3)
返回 -2。
相关函数与文档
floor
round