MathLib.degToRad()

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

Specification

MathLib.degToRad 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.degToRad(NaN) = NaN
  • MathLib.degToRad(+0) = +0
  • MathLib.degToRad(-0) = -0
  • MathLib.degToRad(+∞) = +∞
  • MathLib.degToRad(-∞) = -∞
  • otherwise MathLib.degToRad(x) = x * π/180

Tests

Categories: unary Function