DecRet

From SCAR Divi Manual
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>