elasticsearch/docs/reference/esql/functions/log10.asciidoc

24 lines
555 B
Plaintext

[discrete]
[[esql-log10]]
=== `LOG10`
[.text-center]
image::esql/functions/signature/log10.svg[Embedded,opts=inline]
Returns the log base 10. The input can be any numeric value, the return value
is always a double.
Logs of negative numbers are NaN. Logs of infinites are infinite, as is the log of 0.
[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]
|===
Supported types:
include::types/log10.asciidoc[]