Frac function
Return fractional part of floating point value.
Declaration
function Frac(d: ValReal): ValRealDescription
Frac returns the non-integer part of
X.Errors
None.
See also
Example: ex27
Program Example27;
{ Program to demonstrate the Frac function. }
Var R : Real;
begin
Writeln (Frac (123.456):0:3); { Prints O.456 }
Writeln (Frac (-123.456):0:3); { Prints -O.456 }
end.An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
