DecRet

From SCAR Divi Manual
Revision as of 20:00, 30 August 2011 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function DecRet(const E: Extended): Extended;

Source

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

Availability

SCAR Divi 3.00 > Current

Description

Returns the decimal part of an extended floating point value E. Internally this function uses Delphi's Frac function[1].

Example

begin
  WriteLn(DecRet(1.11));
end.

Output:

0,11

References

<references>