sqrt.asciidoc 657 B

12345678910111213141516171819202122232425262728293031323334
  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. include::types/sqrt.asciidoc[]
  16. *Example*
  17. [source.merge.styled,esql]
  18. ----
  19. include::{esql-specs}/math.csv-spec[tag=sqrt]
  20. ----
  21. [%header.monospaced.styled,format=dsv,separator=|]
  22. |===
  23. include::{esql-specs}/math.csv-spec[tag=sqrt-result]
  24. |===