COT (Transact-SQL)

Applies to: yesSQL Server (all supported versions) YesAzure SQL Database YesAzure SQL Managed Instance yesAzure Synapse Analytics yesParallel Data Warehouse

A mathematical function that returns the trigonometric cotangent of the specified angle - in radians - in the specified float expression.

Topic link icon Transact-SQL Syntax Conventions

Syntax

COT ( float_expression )  

Note

To view Transact-SQL syntax for SQL Server 2014 and earlier, see Previous versions documentation.

Arguments

float_expression
An expression of type float, or of a type that can implicitly convert to float.

Return types

float

Examples

This example returns the COT value for the specific angle:

DECLARE @angle FLOAT;  
SET @angle = 124.1332;  
SELECT 'The COT of the angle is: ' + CONVERT(VARCHAR, COT(@angle));  
GO  

Here is the result set.

The COT of the angle is: -0.040312                
  
(1 row(s) affected)  

See also

Mathematical Functions (Transact-SQL)