Mega Code Archive

 
Categories / MSSQL / Math Functions
 

DEGREES(ACOS(0 5))

1> -- Once an angle has been calculated in radians, the DEGREES function can be used to convert that to an angle in degrees. For example, the following returns the angle in degrees  that has a cosine value of 0.5. 2> 3> SELECT DEGREES(ACOS(0.5)) 4> GO ------------------------       60.000000000000007 (1 rows affected) 1>