LOG10 (Azure Cosmos DB)LOG10 (Azure Cosmos DB)
适用于:
SQL API
返回指定数值表达式以 10 为底的对数。Returns the base-10 logarithm of the specified numeric expression.
语法Syntax
LOG10 (<numeric_expr>)
参数Arguments
numeric_expressionnumeric_expression
是一个数值表达式。Is a numeric expression.
返回类型Return types
返回一个数值表达式。Returns a numeric expression.
备注Remarks
LOG10 和 POWER 函数互为反函数。The LOG10 and POWER functions are inversely related to one another. 例如,10 ^ LOG10(n) = n。For example, 10 ^ LOG10(n) = n. 此系统函数不会使用索引。This system function will not utilize the index.
示例Examples
以下示例声明一个变量并返回指定变量 (100) 的 LOG10 值。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}]