SIN (SQL Server Compact)
Returns the trigonometric sine of the given angle, in radians, in an approximate numeric (float) expression.
Syntax
SIN (float_expression )
Arguments
- float_expression
An expression of data types that can be implicitly converted to float.
Return Value
float
Example
The following example returns the sine of various angles.
CREATE TABLE Sine ("SIN(0)" float, "SIN(PI()/6)" float, "SIN(PI()/4)" float, "SIN(PI()/3)" float, "SIN(PI()/2)" float);
INSERT INTO Sine VALUES (SIN(0), SIN(PI()/6), SIN(PI()/4), SIN(PI()/3), SIN(PI()/2));
SELECT * FROM Sine;