Skip to content

INT

Syntax

INT(X)

Versions: 8K, Extended, Disk

Description

Returns the largest integer less than or equal to X.

Examples

PRINT INT(99.89)
 99
Ok

PRINT INT(-12.11)
 -13
Ok

See Also

  • ABS - Return the absolute value of a number (removes negative sign)
  • ATN - Returns the arctangent of X in radians
  • CDBL - Converts X to a double-precision floating-point number
  • CINT - Converts X to an integer by rounding the fractional portion
  • COS - Returns the cosine of X in radians
  • CSNG - Converts X to a single-precision floating-point number
  • EXP - Returns e to the power of X
  • FIX - Returns the truncated integer part of X
  • LOG - Returns the natural logarithm of X
  • RND - Returns a random number between 0 and 1
  • SGN - Returns the sign of X (-1, 0, or 1)
  • SIN - Returns the sine of X in radians
  • SQR - Returns the square root of X
  • TAN - Returns the tangent of X in radians