fpc/tests/tbs/tb0058.pp
2000-11-30 22:38:14 +00:00

14 lines
295 B
ObjectPascal

{ Old file: tbs0065.pp }
{ shows that frac() doesn't work correctly. OK 0.99.1 (PFV) }
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.