qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int Function
  ◄Summary► ◄Details► ◄Example►                                   ◄Back►
 
  Argument
 
    number         Real expression
 
  Returns
 
    <real type>    A number without its fractional part
 
  Description
 
    The Int function takes a real value and returns a whole number
    as a real type. Int rounds the number toward zero, discarding any
    fractional part and returning the whole number part.
 
    Int is similar to the Trunc function, but Int returns a real type
    while Trunc returns an integer.
 
    The Frac function returns the part of the number omitted from the
    return value of Int. The following two lines are equivalent:
 
       result := Int( number );
    or
       result := number - Frac( number );