SQL Server/T-SQL/Math Functions/DEGREES — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 10:20, 26 мая 2010
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>