INT
Format: var = INT (expr)
Supported by: COMX BASIC V1.00, Floating Point BASIC 2.2, Pecom 32 BASIC, Pecom 64 BASIC 1.0 and 4.0, Quest Super BASIC 1.4, 3.0, 5.0 and 6.0, RCA BASIC3 V1.1, Telmac SBASIC v 24.3
Similar commands: -
This function returns the integer part of the floating-point expression truncating out the fractional part. The result is still in the floating-point mode. This function is not to be confused with INUM (described later). For example
A=7.9: B=INT(A): PR A,Bwill print
7.97
Note for Telmac SBASIC a DEFINT command should be used for the above example to work. This is due to the fact that default the variables A-Z are integers where on the other computers they are default set to floating point. Also the DEFINT command works slightly different in SBASIC then in other BASICs.