ES|QL LOG10 function
number-
Numeric expression. If
null, the function returnsnull.
Returns the logarithm of a value to base 10. The input can be any numeric value, the return value is always a double. Logs of 0 and negative numbers return null as well as a warning.
| number | result |
|---|---|
| double | double |
| integer | double |
| long | double |
| unsigned_long | double |
ROW d = 1000.0
| EVAL s = LOG10(d)
| d: double | s:double |
|---|---|
| 1000.0 | 3.0 |