DecRet

From SCAR Divi Manual
Revision as of 23:47, 27 June 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function DecRet(E: Extended): Extended; </source> ===Source=== <source lang="scar"> function DecRet(E: Extended): Extended; beg...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function DecRet(E: Extended): Extended;

Source

function DecRet(E: Extended): Extended;
begin
  Result := E - Floor(E);
end;

Availability

SCAR Divi 3.00 > Current

Description

Returns the decimal part of an extended floating point value E.

Example

begin
  WriteLn(DecRet(1.11));
end.

Output:

0,11