Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?



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

It takes the general form:


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)

which will display the value 3.

Go back to jBASE BASIC.

Was this article helpful?