COBOL Manual for TNS and TNS/R Programs

Intrinsic Functions
HP COBOL Manual for TNS and TNS/R Programs522555-006
14-41
NUMVAL-C Function
currency-sign
is a nonnumeric literal or alphanumeric data item; a string of one or two
characters that specifies the currency sign. The default is the currency sign
specified for the program.
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.
The returned value is the numeric value represented by string. The format of the
value depends on the size of string. If the length of string is fewer than 10
characters, the equivalent PICTURE is S9(n)V9(n-1), where n is the number of
characters. Any size greater than 9 characters results in an equivalent PICTURE of
S9(19)V9(18). This is a special internal item that cannot be expressed by the user.
Using it is inefficient, so it is best to avoid using a string that is longer than 9
characters.
If the NUMVAL-C function is moved to an alphanumeric item, the results might not be
what is expected because of the implied PICTURE described previously.
digits
digits
.
ns
digits
digits
.
ns
ns
ns
ns
VST451.vsd