Back to Elasticsearch

Floor

docs/reference/query-languages/esql/kibana/docs/functions/floor.md

9.4.1466 B
Original Source

% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.

FLOOR

Round a number down to the nearest integer.

Note: This is a noop for long (including unsigned) and integer. For double this picks the closest double value to the integer similar to Math.floor.

esql
ROW a=1.8
| EVAL a=FLOOR(a)