Sign in Join
FPDoc Onlineexperiment

RadToCycle function

In unit Math

Convert radians angle to cycle angle.

Declaration

pascal
function RadToCycle(const Rads: Single): Single

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

Example: ex37

pascal
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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.