ceil.asciidoc 625 B

123456789101112131415161718192021222324
  1. [discrete]
  2. [[esql-ceil]]
  3. === `CEIL`
  4. [.text-center]
  5. image::esql/functions/signature/ceil.svg[Embedded,opts=inline]
  6. Round a number up to the nearest integer.
  7. [source.merge.styled,esql]
  8. ----
  9. include::{esql-specs}/math.csv-spec[tag=ceil]
  10. ----
  11. [%header.monospaced.styled,format=dsv,separator=|]
  12. |===
  13. include::{esql-specs}/math.csv-spec[tag=ceil-result]
  14. |===
  15. NOTE: This is a noop for `long` (including unsigned) and `integer`.
  16. For `double` this picks the the closest `double` value to the integer ala
  17. {javadoc}/java.base/java/lang/Math.html#ceil(double)[Math.ceil].
  18. Supported types:
  19. include::types/ceil.asciidoc[]