Unit 'Math' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#rtl]

RadToCycle

Convert radians angle to cycle angle.

Declaration

Source position: math.pp line 383

function RadToCycle(

  const Rads: Single

):Single;

function RadToCycle(

  const Rads: Double

):Double;

function RadToCycle(

  const Rads: Extended

):Extended;

Description

Radtocycle converts its argument rad (an angle expressed in radians) to an angle in cycles.

(1 cycle equals 2 pi radians)

Errors

None.

See also

degtograd

  

Convert degree angle to grads angle.

degtorad

  

Convert degree angle to radians angle.

radtodeg

  

Convert radians angle to degrees angle.

radtograd

  

Convert radians angle to grads angle.

cycletorad

  

Convert cycle angle to radians angle.

Example

Program Example37;

{ Program to demonstrate the radtocycle function. }

Uses math;

begin
  writeln(radtocycle(2*pi):8:6);
  writeln(radtocycle(pi):8:6);
  writeln(radtocycle(pi/2):8:6);
end.

Documentation generated on: Nov 22 2024