返回給定 float 表達式的以 10 為底的對數(shù)。
LOG10 ( float_expression )
float_expression
是 float 數(shù)據(jù)類型的表達式。
float
下例計算給定變量的 LOG10。
DECLARE @var float
SET @var = 145.175643
SELECT 'The LOG10 of the variable is: ' + CONVERT(varchar,LOG10(@var))
GO
下面是結(jié)果集:
The LOG10 of the variable is: 2.16189相關(guān)文章
(1 row(s) affected)