Difference between revisions of "DecRet"
From SCAR Divi Manual
(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...") |
(No difference)
|
Revision as of 23:47, 27 June 2011
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