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

5- 8
Syntax
CEIL(
n
)
Parameters
n
The number to be evaluated. This can be of any numeric
type.
Examples
10 A = CEIL(3.7) !A = 4
20 B = CEIL(-3.7) !B = -3
CHR$
The CHR$ function returns the single ASCII character associated with a
number.
Syntax
CHR$(
N
)
Parameters
N
The numeric expression to be evaluated. This must
evaluate to a value within the range of an HP Business
BASIC/XL integer. If
N
is greater than 256, then HP
Business BASIC/XL performs (
N
MOD 256), and the CHR$
returns the ASCII character of that result.
Examples
10 A$ = CHR$(65) !A$ = A
20 B$ = CHR$(321) !B$ = A
CLOCK
The CLOCK function returns the current value of the system clock in
seconds. This is an INTEGER. On the HP 3000, the value of the system
clock is the number of seconds since the time 00:00:00 on January 1,
1980.
Syntax
CLOCK
Since the CLOCK function is precise to the nearest second, two calls to
CLOCK within the same second may return equal values.
Examples
100 Start=CLOCK
.
.
.
900 Stop=CLOCK
910 PRINT "Elapsed time: "; Stop - Start
999 END
COL
The COL function returns the number of columns in an array as it is
currently dimensioned. If it is a vector (a one dimensional array), the
number of columns is one. Otherwise, the number of columns is the size
of the rightmost dimension. The result is an integer value by default.
Syntax
COL(
array
)
Parameters
array
Structured collection of variables of the same type.
The structure is determined when the array is declared.
String variables names are suffixed with a "$".