Sign in Join
FPDoc Onlineexperiment

GradToDeg function

In unit Math

Convert grads angle to degrees angle.

Declaration

pascal
function GradToDeg(grad: Float): Float

Description

Gradtodeg converts its argument grad (an angle in grads) to degrees. (100 grad is 90 degrees)

Errors

None.

See also

Example: ex15

pascal
Program Example15;

{ Program to demonstrate the gradtodeg function. }

Uses math;

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

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