summaryrefslogtreecommitdiff
path: root/fpcdocs/refex/ex27.pp
blob: 58d287aa6d1207fbd96305ecec67140c685cb345 (plain)
1
2
3
4
5
6
7
8
9
10
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.