[next] [previous] [contents]

  11.1.1.2 INT and FIX Functions
  The INT function returns the floating-point value of the
  largest integer less than or equal to a specified expression.
  The INT function always returns a number of the default
  floating-point type.

  The FIX function truncates the value of a floating-point
  number at the decimal point. FIX always returns a number
  of the default floating-point type.

  The following example shows the differences between the
  INT and FIX functions. Note that the value returned by
  FIX(-45.3) differs from the value returned by INT(-45.3).
  PRINT INT(23.553); FIX(23.553)
  PRINT INT(3.1); FIX(3.1)
  PRINT INT(-45.3); FIX(-45.3)
  PRINT INT(-11); FIX(-11)
  END

  Output
    23 23
    3 3
  -46 -45
  -11 -11