向下取整函数
- 更新时间2025-07-30
- 阅读时长2分钟
输入值向最近的最小整数取整。
例如,如输入为3.8,则结果为3。如输入为-3.8,则结果为-4。连线板显示该多态函数的默认数据类型。

输入/输出
x
—
x可以是标量数值、数值数组或簇、数值簇组成的数组等多种数据类型。
floor(x): 最大整数 <= x
—
floor(x):最大整数 ≤ x是最接近x的最小整数。如输入值时间标识,函数可取整至上一秒。 When x is of the form x = a + bi, that is, when x is complex, the function returns a complex number defined by the next lowest integers to the real and imaginary parts of x. The following equation defines floor(x): 最大整数 ≤ x: floor(x) = floor(a) + i floor(b) |
x
—
floor(x): 最大整数 <= x
—