COBOL Manual for TNS and TNS/R Programs

Intrinsic Functions
HP COBOL Manual for TNS and TNS/R Programs522555-006
14-38
NUMVAL Function
NUMVAL Function
NUMVAL, a numeric function, returns the numeric value represented by its argument,
which is a character-string. NUMVAL ignores leading and trailing spaces.
string
sp
is a string of zero or more space characters.
number
If the program contains the DECIMAL POINT COMMA phrase in the SPECIAL-
NAMES paragraph, use a comma instead of a decimal point in number.
digits
is a string of one to 18 digits. The total number of digits in string cannot
exceed 18.
( )
NUMVALFUNCTION string
VST445.vsd
sp
+
-
number
+
-
CR
DB
number
sp
sp
sp
"
"
VST446.vsd
digits
.
digits
digits
.
ns
ns
ns
VST447.vsd