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.
Trunc Function
  Summary Details Example                                   Back
 
  Argument
 
    number     Integer or real expression
 
  Returns
 
    LongInt    Number without its fractional part
 
  Description
 
    The Trunc function takes an integer or real value and returns a
    whole number as a LongInt type. Trunc rounds the number toward
    zero, discarding any fractional part and returning the whole number
    part.
 
    Trunc is similar to the Int function, but Trunc returns an integer
    while Int returns a real type.
 
    If the return value exceeds the range of a LongInt, a run-time
    error occurs.