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 trigonometric sine of the specified angle, in radians, and in an approximate numeric, float, expression.
Transact-SQL syntax conventions
SIN ( float_expression )
float_expression
Is an expression of type float or of a type that can be implicitly converted to float, in radians.
float
The following example calculates the SIN for a specified angle.
DECLARE @angle FLOAT;
SET @angle = 45.175643;
SELECT 'The SIN of the angle is: ' + CONVERT(VARCHAR, SIN(@angle));
GO
Here's the result set.
The SIN of the angle is: 0.929607
(1 row(s) affected)
The following example calculates the sine for a specified angle.
SELECT SIN(45.175643);
Here's the result set.
---------
0.929607
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