HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4-: 137
Table 4-15. Standard Numeric Output Formats
---------------------------------------------------------------------------------------------
| | |
| Type | Digits Printed |
| | |
---------------------------------------------------------------------------------------------
| | |
| SHORT INTEGER | All |
| INTEGER | |
| | |
---------------------------------------------------------------------------------------------
| | |
| SHORT DECIMAL | Most significant 6 |
| DECIMAL | |
| | |
---------------------------------------------------------------------------------------------
| | |
| DECIMAL | Most significant 12 |
| | |
---------------------------------------------------------------------------------------------
| | |
| REAL | Most significant 16 |
| | |
---------------------------------------------------------------------------------------------
Examples
10 STANDARD
20 PRINT 123;.4567;-79810;-1.235E+47
99 END
The above program prints:
123 .4567 -78910 -1.235E+47
STOP
The STOP statement terminates program execution.
Syntax
STOP
The STOP statement can be in a main program or a subunit. A program can
contain more than one STOP statement.
Examples
100 READ I
110 ON I GOSUB 200,300,400
120 STOP !After return from the above ON GOSUB, the program
130 !stops.
200 I=I+1
210 RETURN
300 I=I+I
310 RETURN
400 I=I*I
410 RETURN
999 END
The STOP, END, or SCRATCH statement can stop a program. When a program
stops, the following occurs:
* Subroutine return pointers are lost.
* FOR NEXT loop "bookkeeping" is lost.
* Subunit call "bookkeeping" is lost.