LOG10 (Azure Cosmos DB)

Returns the base-10 logarithm of the specified numeric expression.

Syntax

LOG10 (<numeric_expr>)  

Arguments

numeric_expression
Is a numeric expression.

Return types

Returns a numeric expression.

Remarks

The LOG10 and POWER functions are inversely related to one another. For example, 10 ^ LOG10(n) = n. This system function will not utilize the index.

Examples

The following example declares a variable and returns the LOG10 value of the specified variable (100).

SELECT LOG10(100) AS log10 

Here is the result set.

[{log10: 2}]  

Next steps