ceil.asciidoc 614 B

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