Sign in Join
FPDoc Onlineexperiment

RadToDeg function

In unit Math

Convert radians angle to degrees angle.

Declaration

pascal
function RadToDeg(rad: Float): Float

Description

Radtodeg converts its argument rad (an angle expressed in radians) to an angle in degrees. (180 degrees equals pi radians)

Errors

None.

See also

Example: ex38

pascal
Program Example38;

{ Program to demonstrate the radtodeg function. }

Uses math;

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

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