This documentation is archived and is not being maintained.

SIN (SQL Server Compact Edition)

Returns the trigonometric sine of the given angle, in radians, in an approximate numeric (float) expression.


SIN ( float_expression ) 

float_expression

An expression of data types that can be implicitly converted to float.

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
Show: