# FLOOR

The FLOOR function rounds a number down to the nearest integer.

## Syntax

`FLOOR(number)`

### Parameters

#### number

This is a numeric expression. If the parameter is `null`, the function will return `null`.

## Examples

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

```esql
FROM employees
| KEEP first_name, last_name, height
| EVAL height_floor = FLOOR(height)
```

## Notes

- The FLOOR function is a no-operation for `long` (including unsigned) and `integer` types. For `double` type, this function picks the closest `double` value to the integer, similar to the Math.floor method in programming languages.
