HP 3000 Manuals

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


HP Business BASIC/XL Reference Manual

VAL 

The VAL function returns a number representing the numeric string at the
beginning of a string expression.  It will ignore the rest of the string
expression.

Syntax 

VAL(S$)

Parameters 

S$               A string expression to be evaluated.  If S$ does not
                 start with a legal integer or real number, an error
                 occurs.

Examples 

     10  A = VAL("12ABC")   !A = 12
     20  B = VAL("3.45pq")  !B = 3.45
     20  C = VAL("9.00")    !C = 9.00



MPE/iX 5.0 Documentation