Difference between revisions of "Inversus"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function Inversus(E: Extended): Extended; </source> ===Source Code=== <source lang="scar"> function Inversus(E: Extended): Exte...")
(No difference)

Revision as of 22:38, 27 June 2011

Definition

function Inversus(E: Extended): Extended;

Source Code

function Inversus(E: Extended): Extended;
begin
  Result := Power(E, -1);
end;

Availability

SCAR Divi 3.00 > Current

Description

This function inverts a given extended floating point value E.

Example

begin
  WriteLn(Inversus(2));
end.

Output:

0,5