COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
value-2
spaces
is a string of zero or more space characters.
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.
NUMVAL-C Function 681










