Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
Analytics Platform System (PDW)
SQL analytics endpoint in Microsoft Fabric
Warehouse in Microsoft Fabric
Returns the tangent of the input expression.
Transact-SQL syntax conventions
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's the result set.
----------------------
1.6331778728383844E+16
The following example returns the tangent of .45.
SELECT TAN(.45);
Here's the result set.
--------
0.48
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today