SQL Server/T-SQL/Math Functions/DEGREES

Материал из SQL эксперт
Перейти к: навигация, поиск

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>



DEGREES: converts a float value, which represents an angle in radians, into the value of this angle in degrees

1> -- DEGREES: converts a float value, which represents an angle in radians, into the value of this angle in degrees.
2>
3> SELECT DEGREES(PI()/4)
4> GO
------------------------
                      45
(1 rows affected)
1>