# ROUND

Rounds a number to the specified number of decimal places. By default, it rounds to 0 decimal places, returning the nearest integer. If the precision is a negative number, it rounds to the specified 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. Defaults to 0. If `null`, the function returns `null`.

## Examples

Rounding a height value to one decimal place
```esql
FROM employees
| KEEP first_name, last_name, height
| EVAL height_ft = ROUND(height * 3.281, 1)
```

This example converts the `height` column from meters to feet and rounds the result to one decimal place.

```esql
FROM sales
| KEEP product_name, revenue
| EVAL rounded_revenue = ROUND(revenue, -2)
```

## Notes

If "decimals" is a negative number, the ROUND function rounds to the number of digits left of the decimal point.
