Logo 
Search:

SQL Server Articles

Submit Article
Home » Articles » SQL Server » Math FunctionsRSS Feeds

COS Function

Posted By: Sarita Patel     Category: SQL Server     Views: 1517

This article explains COS function of sql server with examples.

COS is used to get trigonometric cosine of the specified angle in radians.


Syntax of COS Function :

COS (float_expression)

float_expression is an expression of float data type.

Return type of COS is float data type.



Examples of COS Function :

Example 1 : Use of COS function in select clause

SELECT COS(30)

Output
0.154251449887584

Above example returns trigonometric cosine value for specified value in angle.
  
Share: 

 
 
 

Didn't find what you were looking for? Find more on COS Function Or get search suggestion and latest updates.

Sarita Patel
Sarita Patel author of COS Function is from United States.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!