[next] [prev] [prev-tail] [tail] [up]

#### Frac

Declaration:
  Function Frac (X : Real) : Real;
Description:
  Frac returns the non-integer part of X.
Errors:
  None.
See also:
  Round (561), Int (523)

Listing: refex/ex27.pp

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.

[next] [prev] [prev-tail] [front] [up]