TAN (Transact-SQL)

 

THIS TOPIC APPLIES TO: yesSQL Server (starting with 2008)yesAzure SQL DatabaseyesAzure SQL Data Warehouse yesParallel Data Warehouse

Returns the tangent of the input expression.

Topic link icon Transact-SQL Syntax Conventions

-- Syntax for SQL Server, Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse  
  
TAN ( float_expression )  

float_expression
Is an expression of type float or of a type that can be implicitly converted to float, interpreted as number of radians.

float

The following example returns the tangent of PI()/2.

SELECT TAN(PI()/2);  

Here is the result set.

----------------------  
1.6331778728383844E+16  

The following example returns the tangent of .45.

SELECT TAN(.45);  

Here is the result set.

--------

0.48

Mathematical Functions (Transact-SQL)

Community Additions

ADD
Show: