round.asciidoc 464 B

1234567891011121314
  1. [[esql-round]]
  2. === `ROUND`
  3. Rounds a number to the closest number with the specified number of digits.
  4. Defaults to 0 digits if no number of digits is provided. If the specified number
  5. of digits is negative, rounds to the number of digits left of the decimal point.
  6. [source.merge.styled,esql]
  7. ----
  8. include::{esql-specs}/docs.csv-spec[tag=round]
  9. ----
  10. [%header.monospaced.styled,format=dsv,separator=|]
  11. |===
  12. include::{esql-specs}/docs.csv-spec[tag=round-result]
  13. |===