COS (SQL Server Compact)
特定の型の式として渡された角度 (ラジアン単位) のコサイン (余弦) を返します。
COS ( float_expression )
- float_expression
暗黙的に float 型に変換できる式。
float
次の例では、さまざまな角度のコサインを返します。
CREATE TABLE Cosine ("COS(0)" float, "COS(PI()/6)" float, "COS(PI()/4)" float, "COS(PI()/3)" float, "COS(PI()/2)" float);
INSERT INTO Cosine VALUES (COS(0), COS(PI()/6), COS(PI()/4), COS(PI()/3), COS(PI()/2));
SELECT *
FROM Cosine;