COT (Transact-SQL)
傳回指定 float 運算式中指定角度之三角餘切函數 (Cotangent) (以弧度為單位) 的數學函數。
適用於:SQL Server (SQL Server 2008 透過目前版本)、Windows Azure SQL 資料庫 (初始版本,透過目前版本)。 |
語法
COT ( float_expression )
引數
- float_expression
這是一個 float 類型或能夠隱含地轉換成 float 之類型的運算式。
傳回類型
float
範例
下列範例會傳回特定角度的 COT。
DECLARE @angle float;
SET @angle = 124.1332;
SELECT 'The COT of the angle is: ' + CONVERT(varchar,COT(@angle));
GO
以下為結果集:
The COT of the angle is: -0.040312
(1 row(s) affected)