Radians

From SCAR Divi Manual
Revision as of 07:58, 28 June 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function Radians(const Degrees: Extended): Extended; </source> ===Source=== <source lang="scar"> function Radians(const Degrees...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 radians to a value defined in degrees.

Example

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

Output:

3,14159265358979
3,14159265358979

See Also