Sign in Join
FPDoc Onlineexperiment

DegToRad function

In unit Math

Convert degree angle to radians angle.

Declaration

pascal
function DegToRad(deg: Float): Float

Description

Degtorad converts it's argument deg (an angle in degrees) to radians. (pi radians is 180 degrees)

Errors

None.

See also

Example: ex12

pascal
Program Example12;

{ Program to demonstrate the degtorad function. }

Uses math;

begin
  writeln(degtorad(45));
  writeln(degtorad(90));
  writeln(degtorad(180));
  writeln(degtorad(270));
  writeln(degtorad(360));
end.

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