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

#### Int

Declaration:
  Function Int (X : Real) : Real;
Description:
  Int returns the integer part of any Real X, as a Real.
Errors:
  None.
See also:
  Frac (503), Round (561)

Listing: refex/ex34.pp

Program Example34;
{ Program to demonstrate the Int function. }
begin
Writeln (Int(123.456):0:1); { Prints 123.0 }
Writeln (Int(-123.456):0:1); { Prints -123.0 }
end.

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