123456789101112131415161718192021222324252627282930313233 |
- [discrete]
- [[esql-log10]]
- === `LOG10`
- *Syntax*
- [.text-center]
- image::esql/functions/signature/log10.svg[Embedded,opts=inline]
- `n`::
- Numeric expression. If `null`, the function returns `null`.
- *Description*
- Returns the logarithm to base 10. The input can be any numeric value, the return
- value is always a double.
- Logs of 0, negative numbers, and infinites return `null` as well as a warning.
- *Supported types*
- include::types/log10.asciidoc[]
- *Example*
- [source.merge.styled,esql]
- ----
- include::{esql-specs}/math.csv-spec[tag=log10]
- ----
- [%header.monospaced.styled,format=dsv,separator=|]
- |===
- include::{esql-specs}/math.csv-spec[tag=log10-result]
- |===
|