Sign in Join
FPDoc Onlineexperiment

DegToGrad function

In unit Math

Convert degree angle to grads angle.

Declaration

pascal
function DegToGrad(deg: Float): Float

Description

Degtograd transforms it's argument deg (an angle in degrees) to grads. (90 degrees is 100 grad.)

Errors

None.

See also

Example: ex11

pascal
Program Example11;

{ Program to demonstrate the degtograd function. }

Uses math;

begin
  writeln(degtograd(90));
  writeln(degtograd(180));
  writeln(degtograd(270))
end.

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