sqrt.asciidoc 676 B

123456789101112131415161718192021222324252627282930313233343536
  1. [discrete]
  2. [[esql-sqrt]]
  3. === `SQRT`
  4. *Syntax*
  5. [.text-center]
  6. image::esql/functions/signature/sqrt.svg[Embedded,opts=inline]
  7. *Parameters*
  8. `n`::
  9. Numeric expression. If `null`, the function returns `null`.
  10. *Description*
  11. Returns the square root of a number. The input can be any numeric value, the
  12. return value is always a double.
  13. Square roots of negative numbers are NaN. Square roots of infinites are
  14. infinite.
  15. *Supported types*
  16. include::types/sqrt.asciidoc[]
  17. *Example*
  18. [source.merge.styled,esql]
  19. ----
  20. include::{esql-specs}/math.csv-spec[tag=sqrt]
  21. ----
  22. [%header.monospaced.styled,format=dsv,separator=|]
  23. |===
  24. include::{esql-specs}/math.csv-spec[tag=sqrt-result]
  25. |===