Degrees

From SCAR Divi Manual
Revision as of 08:07, 28 June 2011 by Freddy (talk | contribs) (Definition)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function Degrees(const Radians: Extended): Extended;

Source

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

Availability

SCAR Divi 3.00 > Current

Description

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

Example

begin
  WriteLn(Degrees(Pi));
  WriteLn(Degrees(Pi / 2));
end.

Output:

180
90

See Also