MathTop

round 函数

将数值表达式舍入到最接近的整数。

语法

  • round(expr)

参数与选项

expr要变换或求值的表达式。

示例

  1. 舍入小数round(7/3)返回 2。