Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SIN

SQL Server 2000

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

Syntax
SIN ( float_expression ) 
Arguments
float_expression
Is an expression of data types that can be implicitly converted to float.
Return Types

float

Examples

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:
© 2015 Microsoft