# INT

Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)

Tags: dround rounding round roundoff mathematical operations floating point operations

# Description

The INT() function returns the floor of a numeric value.

It takes the general form:

INT(expression)
1

Where expression should evaluate to a numeric value. The function will then return the integer portion of the value.

The function works by truncating the fractional part of the numeric value rather than by standard mathematical rounding techniques. Therefore, INT(9.001) and INT(9.999) will both return the value 9.

An example of use is as:

CRT INT(22/7)
1

which will display the value 3.

Go back to jBASE BASIC

Go back to Programmers' Reference Guide