Sign in Join
FPDoc Onlineexperiment

GradToRad function

In unit Math

Convert grads angle to radians angle.

Declaration

pascal
function GradToRad(grad: Float): Float

Description

Gradtorad converts its argument grad (an angle in grads) to radians. (200 grad is pi degrees).

Errors

None.

See also

Example: ex16

pascal
Program Example16;

{ Program to demonstrate the gradtorad function. }

Uses math;

begin
  writeln(gradtorad(100));
  writeln(gradtorad(200));
  writeln(gradtorad(300));
end.

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