123456789101112 |
- [[esql-round]]
- === `ROUND`
- Rounds a number to the closest number with the specified number of digits.
- Defaults to 0 digits if no number of digits is provided. If the specified number
- of digits is negative, rounds to the number of digits left of the decimal point.
- [source,esql]
- ----
- FROM employees
- | PROJECT first_name, last_name, height
- | EVAL height = ROUND(height * 3.281, 1)
- ----
|