qbasic.hlp (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.
FIX, INT Functions
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
FIX truncates a floating-point expression to its integer portion.
INT returns the largest integer less than or equal to a numeric expression.
 
FIX(numeric-expression)
INT(numeric-expression)
 
    ■ numeric-expression    Any numeric expression.
 
Example:
    PRINT FIX(12.49), FIX(12.54)    'Output is:  12  12
    PRINT INT(12.54), INT(-99.4)    'Output is:  12  -100
 
See Also    CINT, CLNG