sqrt.asciidoc 546 B

12345678910111213141516171819202122
  1. [[esql-sqrt]]
  2. === `SQRT`
  3. [.text-center]
  4. image::esql/functions/signature/sqrt.svg[Embedded,opts=inline]
  5. Returns the square root of a number. The input can be any numeric value, the return value
  6. is always a double.
  7. Square roots of negative numbers are NaN. Square roots of infinites are infinite.
  8. [source.merge.styled,esql]
  9. ----
  10. include::{esql-specs}/math.csv-spec[tag=sqrt]
  11. ----
  12. [%header.monospaced.styled,format=dsv,separator=|]
  13. |===
  14. include::{esql-specs}/math.csv-spec[tag=sqrt-result]
  15. |===
  16. Supported types:
  17. include::types/sqrt.asciidoc[]