Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回不大于给定数字的最大整数。
FLOOR( numeric-expression )
numeric-expression 要截断的值,通常为具有非零小数位数的固定数值类型或近似数值类型(DOUBLE、REAL 或 FLOAT)。
DOUBLE
此函数将其参数转换为 DOUBLE,并以双精度浮点运算执行计算。
SQL/2008 FLOOR 函数是可选 SQL/2008 语言功能 T621 "增强数字函数" 的一部分。
以下语句返回 Floor 值 123:
SELECT FLOOR (123);
以下语句返回值 123:
SELECT FLOOR (123.45);
以下语句返回值 -124:
SELECT FLOOR (-123.45);