HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

5-17
In the program:
120 IF INFO$="Debug" THEN
...
180 ENDIF
In this case, the above block would execute since the expression
INFO$="Debug" is true.
The INFO$ function can also be used with an HP Business BASIC/XL program
file.
:RUN Prog1;INFO="Debug"
The INFO$ function can be used within Prog1.
INT
The INT function returns the largest integer that is less than or equal
to a specified number. The result is of type INTEGER.
Syntax
INT(
n
)
Parameters
n
The number to be evaluated. This argument can be of any
numeric type.
Examples
10 A = INT(4.5) !A = 4
20 B = INT(-0.3) !B = -1
INTEGER
The INTEGER function converts a number to an integer. The result is of
type INTEGER.
Syntax
INTEGER(
n
)
Parameters
n
The number to be converted. This can be of any numeric
type.
Examples
10 A = INTEGER(3.0) !A = 3
INTERPRETED
The INTERPRETED function returns a value that determines whether a
program is being run in the interpreter or as a compiled program.
The return value is as follows:
Table 5-5. Result of INTERPRETED Function
---------------------------------------------------------------------------------------------
| | |
| Result | Meaning |
| | |
---------------------------------------------------------------------------------------------
| | |
| 0 | Compiled program. |
| | |
---------------------------------------------------------------------------------------------
| | |
| 1 | Interpreted program. |
| | |
---------------------------------------------------------------------------------------------