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

5-7
Table 5-2. Type Assignment by BUFTYP Function
---------------------------------------------------------------------------------------------
||||
| Range | Without Decimal Point and | With Decimal Point or |
||Not Expressed in | Expressed in |
||Scientific Notation | Scientific Notation |
||||
---------------------------------------------------------------------------------------------
||||
| [-32768, 32767] | SHORT INTEGER | REAL |
||||
---------------------------------------------------------------------------------------------
||||
| [-2147483648, 2147483647] | INTEGER | REAL |
||||
---------------------------------------------------------------------------------------------
||||
| Outside integer ranges but inside | REAL | REAL |
| real range | | |
||||
---------------------------------------------------------------------------------------------
||||
| Outside real ranges | DECIMAL | DECIMAL |
||||
---------------------------------------------------------------------------------------------
Examples
10 A=BUFTYP !After this call, A will contain the data type of the
20 !next item in the input buffer.
CCODE
The CCODE function returns the condition code set by the last called MPE
XL intrinsic. The results are:
Intrinsic condition CCODE Meaning:
code: Returns:
------------------------------------------------------------------------------------
CCG 0 A special condition occurred
but the request may have
been granted.
CCL 1 An error has occurred and
the request was not granted.
CCE 2 Request has been granted.
Refer to the
MPE XL Intrinsics Reference Manual
for more information.
Syntax
CCODE
Examples
The example below calls an intrinsic (Findjcw), and then uses the CCODE
function to make sure the intrinsic was executed successfully.
10 INTRINSIC Findjcw
20 CAll Findjcw
30 IF CCODE < 2 THEN GOSUB 300
.
.
.
CEIL
The CEIL function returns the smallest integral number that is greater
than or equal to the specified number. This function returns a value
that is the same type as the argument.