HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
5- 40
n
The number that is to be evaluated. This is of any
numeric type.
Examples
10 A = TRUNC(57.571) !A = 57
20 B = TRUNC(-57.541) !B = -57
TYP
The TYP function returns a number that represents the type of the next
datum in a file. See Table 5-9 below.
Table 5-9. Numbers Representing File Data Types
--------------------------------------------------------------------------------------------
| | |
| TYP Result | Type of Next Item in File |
| | |
--------------------------------------------------------------------------------------------
| | |
| 0 | Unrecognized |
| | |
--------------------------------------------------------------------------------------------
| | |
| 1 | DECIMAL |
| | |
--------------------------------------------------------------------------------------------
| | |
| 2 | Entire string |
| | |
--------------------------------------------------------------------------------------------
| | |
| 3 | End-of-file (EOF) mark |
| | |
--------------------------------------------------------------------------------------------
| | |
| 4 | End-of-record (EOR) mark |
| | |
--------------------------------------------------------------------------------------------
| | |
| 5 | SHORT INTEGER |
| | |
--------------------------------------------------------------------------------------------
| | |
| 6 | SHORT DECIMAL |
| | |
--------------------------------------------------------------------------------------------
| | |
| 8 | Beginning of string |
| | |
--------------------------------------------------------------------------------------------
| | |
| 9 | Middle of string |
| | |
--------------------------------------------------------------------------------------------
| | |
| 10 | End of string |
| | |
--------------------------------------------------------------------------------------------
| | |
| 11 | INTEGER |
| | |
--------------------------------------------------------------------------------------------
| | |
| 12 | SHORT REAL |
| | |
--------------------------------------------------------------------------------------------
| | |
| 13 | REAL |
| | |
--------------------------------------------------------------------------------------------