HP 3000 Manuals

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


HP Business BASIC/XL Reference Manual

DECIMAL 

This statement defines a variable as a type DECIMAL. If the SHORT option
is used with it, the variable is type SHORT DECIMAL.

Syntax 

                  {num_var} [ {num_var}]
[SHORT] DEC[IMAL] {arrayd } [,{arrayd }]...

Parameters 

num_var          Name of scalar numeric variable to be declared.

arrayd           Numeric array description.  The syntax for the array is
                 described under the DIM statement.

Examples 

The following are examples of declaring variables of types DECIMAL and
SHORT DECIMAL.

     100 SHORT DECIMAL Price
     120 SHORT DECIMAL Cost1,Cost2(7),Cost3
     130 DECIMAL Length
     140 DECIMAL D1,D2,D3(6,8),D4(3,5)



MPE/iX 5.0 Documentation