DTOR()

Convert degree to radiant

Syntax

DTOR (nDegree) -> nRadiant

Arguments

<nDegree> the size of that angle in degree

Returns

<nRadiant> the size of an angle in radiant

Description

The function DTOR() can be used to convert sizes of angles given in degrees to radiant (as expected by sin, cos or tan functions).
Examples
      ? dtor (180) --> PI()
      ? dtor (60) --> PI()/3
Tests
      dtor (0.0) == 0.0
      dtor (180.0) == PI()
Status

Ready

Compliance

DTOR() is compatible with CT3's DTOR().

Platforms

All

Files

Source is trig.c, library is libct.

See Also