degrees()degrees()

使用公式 degrees = (180 / PI ) * angle_in_radians,将以弧度表示的角度值转换为以度表示的值Converts angle value in radians into value in degrees, using formula degrees = (180 / PI ) * angle_in_radians

语法Syntax

degrees(a)degrees(a)

参数Arguments

  • a:以弧度表示的角度(实数)。a : Angle in radians (a real number).

返回Returns

  • 指定角度(弧度)的相应角度(度)。The corresponding angle in degrees for an angle specified in radians.

示例Examples

print degrees0 = degrees(pi()/4), degrees1 = degrees(pi()*1.5), degrees2 = degrees(0)

degrees0degrees0 degrees1degrees1 degrees2degrees2
4545 270270 00