Floor(Floor(向下取整))¶
Supported in: Batch, Faster, Streaming
Returns floor of a given fractional value.
Expression categories: Numeric
Declared arguments¶
- Expression: The value to floor.
Expression\
Output type: Decimal | Long
Examples¶
Example 1: Base case¶
Argument values:
- Expression: 10.123
Output: 10
Example 2: Null case¶
Argument values:
- Expression:
number
| number | Output |
|---|---|
| null | null |
中文翻译¶
Floor(向下取整)¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
返回给定小数值的向下取整结果。
表达式类别: 数值型
声明的参数¶
- 表达式(Expression): 需要向下取整的值。
表达式\
输出类型: Decimal | Long
示例¶
示例 1:基础情况¶
参数值:
- 表达式: 10.123
输出: 10
示例 2:空值情况¶
参数值:
- 表达式:
number
| number | 输出 |
|---|---|
| null | null |