Skip to main content

Categories: Math

LOG10

Returns the log base 10 of the input. Returns NULL if the input is NULL. Equivalent to LOG(10, expression).

Syntax​

LOG10(expression double) → double​

  • expression: The value for which you want to calculate the log.

Examples

LOG10 example
SELECT LOG10(20.5)
-- 1.3117538610557542
Return NULL for a NULL input
SELECT LOG10(NULL)
-- null

LOG10(expression int64) → double​

  • expression: The value for which you want to calculate the log.

Examples

LOG10 example
SELECT LOG10(100)
-- 2.0

LOG10(expression int32) → double​

  • expression: The value for which you want to calculate the log.

Examples

LOG10 example
SELECT LOG10(100)
-- 2.0
Calculate the base 10 logarithm of 1000
SELECT LOG10(1000)
-- 3.0

LOG10(expression float) → double​

  • expression: The value for which you want to calculate the log.

Examples

LOG10 example
SELECT LOG10(20.5)
-- 1.3117538610557542