Transact-SQL 参考

SIN

以近似数字 (float) 表达式返回给定角度(以弧度为单位)的三角正弦值。

语法

SIN ( float_expression )

参数

float_expression

float 类型的表达式。

返回类型

float

示例

下例计算给定角度的 SIN 值。

DECLARE @angle float
SET @angle = 45.175643
SELECT 'The SIN of the angle is: ' + CONVERT(varchar,SIN(@angle))
GO

下面是结果集:

The SIN of the angle is: 0.929607                       

(1 row(s) affected)

请参见

数学函数