log10.asciidoc 642 B

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