# ROUND

The ROUND function rounds a number to a specified number of decimal places. By default, it rounds to 0 decimal places, returning the nearest integer. If the precision is negative, it rounds to the number of digits left of the decimal point.

## Syntax

`ROUND(number, decimals)`

### Parameters

#### number

The numeric value to round. If `null`, the function returns `null`.

#### decimals

The number of decimal places to round to. This parameter is optional and defaults to 0. If `null`, the function returns `null`.

## Examples

Calculates each employee's height in feet and rounds the result to one decimal place, displaying their first name, last name, and the rounded height.

```esql
FROM employees
| KEEP first_name, last_name, height
| EVAL height_ft = ROUND(height * 3.281, 1)
```
