Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

TAN (SQL Server Compact)

Returns the tangent of the input expression.

TAN ( float_expression ) 


An expression of data types that can be implicitly converted to float, interpreted as number of radians.

The following example returns the tangent of various angles.

CREATE TABLE Tangent ("TAN(0)" float, "TAN(PI()/6)" float, "TAN(PI()/4)" float, "TAN(PI()/3)" float, "TAN(PI()/2)" float);
INSERT INTO Tangent VALUES (TAN(0), TAN(PI()/6), TAN(PI()/4), TAN(PI()/3), TAN(PI()/2));
SELECT * FROM Tangent;
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft