Difference between revisions of "Degrees"
From SCAR Divi Manual
(→Example) |
|||
Line 2: | Line 2: | ||
<source lang="scar" lines="false"> | <source lang="scar" lines="false"> | ||
function Degrees(Radians: Extended): Extended; | function Degrees(Radians: Extended): Extended; | ||
+ | </source> | ||
+ | |||
+ | ===Source=== | ||
+ | <source lang="scar"> | ||
+ | function Degrees(const Radians: Extended): Extended; | ||
+ | begin | ||
+ | Result := Radians * (180 / PI); | ||
+ | end; | ||
</source> | </source> | ||
Revision as of 07:56, 28 June 2011
Definition
function Degrees(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 to a value defined in degrees.
Example
begin WriteLn(Degrees(Pi)); WriteLn(Degrees(Pi / 2)); end.
Output:
180 90