[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 INT                    Return Integer Part of Number                 pp 140

 Syntax:  Int (NumVar) ;

 Type:    Real

 Form:    Function

 Purpose: Returns the greatest integer part of NumVar which is greater than
          or equal to NumVar, if NumVar > 0.  If NumVar < 0 then the smallest
          integer greater than or equal to NumVar is returned..

 Notes:   NumVar may be either Integer or Real.


 ----------------------------------------------------------------------------


 Usage:
       VAR
          IntVar  : Integer        ;
          RealVar : Real           ;
          Result  : Real           ;

       BEGIN
          Result  := Int (IntVar)  ;
          Result  := Int (RealVar) ;
       END.

See Also: Frac Round Trunc
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson