Radians

From SCAR Divi Manual
Revision as of 00:41, 29 June 2011 by Freddy (talk | contribs) (Source)
Jump to: navigation, search

Definition

function Radians(const Degrees: Extended): Extended;

Source

function Radians(const Degrees: Extended): Extended;
begin
  Result := Degrees * (Pi / 180);
end;

Availability

SCAR Divi 3.00 > Current

Description

Converts an angle defined in degrees specified by Degrees to an angle defined in radians.

Example

begin
  WriteLn(Radians(180));
  WriteLn(Radians(90) * 2);
end.

Output:

3,14159265358979
3,14159265358979

See Also