HP 3000 Manuals

STANDARD [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

STANDARD 

The STANDARD statement sets the default numeric output format to
standard.  The FLOAT and FIXED statements also set the default numeric
output.

Syntax 

STANDARD

Standard numeric format depends on the type of the number being
formatted.  Floating-point literals are of the default numeric type.
Table 4-15 tells which digits are printed for each numeric type.

          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



MPE/iX 5.0 Documentation