COBOL Manual for TNS/E Programs (H06.03+)

Language Elements
HP COBOL Manual for TNS/E Programs520347-003
3-15
Literals
Literals
A literal is a character-string that has a value implied by either of these:
An ordered set of characters that compose the literal
A figurative constant (a special type of reserved word)
Topics:
Numeric literals
°
Decimal Numeric Literals
°
Hexadecimal Numeric Literals
Nonnumeric literals
°
Simple Nonnumeric Literals
°
Hexadecimal Nonnumeric Literals
National Literals
Figurative Constants
Decimal Numeric Literals
A decimal numeric literal is a character-string that has the value of the sequence of its
digits.
digits
is a string of one to 18 digits. The total number of digits in a decimal numeric literal
cannot exceed 18.
dp
is a decimal point. It is a period (“.”) unless the program contains the DECIMAL
POINT COMMA phrase in the SPECIAL-NAMES paragraph, in which case it is a
comma (“,”).
digits
digits
ns
digits
ns
+
-
dp
ns
dp
ns
VST743.vsd