SIN (Transact-SQL)SIN (Transact-SQL)
適用対象:Applies to: SQL ServerSQL Server (サポートされているすべてのバージョン)
SQL ServerSQL Server (all supported versions)
Azure SQL データベースAzure SQL Database
Azure SQL データベースAzure SQL Database
Azure SQL Managed InstanceAzure SQL Managed Instance
Azure SQL Managed InstanceAzure SQL Managed Instance
Azure Synapse AnalyticsAzure Synapse Analytics
Azure Synapse AnalyticsAzure Synapse Analytics
Parallel Data WarehouseParallel Data Warehouse
Parallel Data WarehouseParallel Data Warehouse
SQL ServerSQL Server (サポートされているすべてのバージョン)
SQL ServerSQL Server (all supported versions)
Azure SQL データベースAzure SQL Database
Azure SQL データベースAzure SQL Database
Azure SQL Managed InstanceAzure SQL Managed Instance
Azure SQL Managed InstanceAzure SQL Managed Instance
Azure Synapse AnalyticsAzure Synapse Analytics
Azure Synapse AnalyticsAzure Synapse Analytics
Parallel Data WarehouseParallel Data Warehouse
Parallel Data WarehouseParallel Data Warehouse
ラジアンでと概数型の場合、指定された角度の三角関数サインが返されます float, 、式です。Returns the trigonometric sine of the specified angle, in radians, and in an approximate numeric, float, expression.
Transact-SQL 構文表記規則
Transact-SQL Syntax Conventions
構文Syntax
SIN ( float_expression )
注意
SQL Server 2014 以前の Transact-SQL 構文を確認するには、以前のバージョンのドキュメントを参照してください。To view Transact-SQL syntax for SQL Server 2014 and earlier, see Previous versions documentation.
引数Arguments
float_expressionfloat_expression
float 型、またはラジアンで暗黙的に float 型に変換できる 式を指定します。Is an expression of type float or of a type that can be implicitly converted to float, in radians.
戻り値の型Return Types
floatfloat
例Examples
次の例では、指定された角度の SIN を計算します。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 is the result set.
The SIN of the angle is: 0.929607
(1 row(s) affected)
例: Azure Synapse AnalyticsAzure Synapse Analytics、Parallel Data WarehouseParallel Data WarehouseExamples: Azure Synapse AnalyticsAzure Synapse Analytics and Parallel Data WarehouseParallel Data Warehouse
次の例では、指定された角度の sine を計算します。The following example calculates the sine for a specified angle.
SELECT SIN(45.175643);
結果セットは次のようになります。Here is the result set.
---------
0.929607