log10.asciidoc 661 B

123456789101112131415161718192021222324252627282930313233
  1. [discrete]
  2. [[esql-log10]]
  3. === `LOG10`
  4. *Syntax*
  5. [.text-center]
  6. image::esql/functions/signature/log10.svg[Embedded,opts=inline]
  7. `n`::
  8. Numeric expression. If `null`, the function returns `null`.
  9. *Description*
  10. Returns the logarithm to base 10. The input can be any numeric value, the return
  11. value is always a double.
  12. Logs of 0, negative numbers, and infinites return `null` as well as a warning.
  13. *Supported types*
  14. include::types/log10.asciidoc[]
  15. *Example*
  16. [source.merge.styled,esql]
  17. ----
  18. include::{esql-specs}/math.csv-spec[tag=log10]
  19. ----
  20. [%header.monospaced.styled,format=dsv,separator=|]
  21. |===
  22. include::{esql-specs}/math.csv-spec[tag=log10-result]
  23. |===