返回给定 float 表达式的以 10 为底的对数。
LOG10 ( float_expression )
float_expression
是 float 数据类型的表达式。
float
下例计算给定变量的 LOG10。
DECLARE @var float SET @var = 145.175643 SELECT 'The LOG10 of the variable is: ' + CONVERT(varchar,LOG10(@var)) GO
下面是结果集:
The LOG10 of the variable is: 2.16189 (1 row(s) affected)