MathLib.radToDeg

MathLib.radToDeg() converts an angle given in radians to degree.

Specification

MathLib.radToDeg accepts one argument. Any additional arguments will be ignored. The type of the argument should be number. For other argument types see the unary function specification.
  • MathLib.radToDeg(NaN) = NaN
  • MathLib.radToDeg(+0) = +0
  • MathLib.radToDeg(-0) = -0
  • MathLib.radToDeg(+∞) = +∞
  • MathLib.radToDeg(-∞) = -∞
  • otherwise MathLib.radToDeg(x) = x * π/180

Tests

Categories: unary Function