Numeric Literal
A numeric literal is a string of characters chosen from digits 0 thru 9, the plus sign, the minus sign,
and the decimal point. Its value is the algebraic quantity represented by the characters in the
literal. Every numeric literal is in the numeric category.
Rules for forming numeric literals:
•
It
must contain at least one and not more than 18 digits.
•
It
can contain only one sign character.
If
a sign is used, it must appear as the leftmost
character of the literal. An unsigned literal is positive.
•
It can contain only one decimal point. The decimal point is treated as an assumed decimal
point, and may appear anywhere in the literal except as the rightmost character. A literal
without a decimal point is an integer.
If
a literal conforms
to
the rules for forming a numeric literal, but is enclosed in quotation marks,
it is a non-numeric literal.
Examples of numeric literals:
15067893251459
-12572.6
+25675
1435.89
Floating Point Literal
A floating point literal is a numeric literal written in the following form.
[ ± ]
coefficient E
I
±]
exponent
Rules for floating-point literals:
36
•
The coefficient may have from one
to
eleven digits in the range of 0
~ n~
2
-1 and a
decimal point ..
•
The coefficient is followed immediately by the symbol E, followed by an optional plus or
minus sign, followed by one
to
three numeric digits which indicate the power of the ex-:
ponent. A zero exponent may be written as 0, 00, or 000. An unsigned exponent is
assumed
to be positive. The exponent is to the base 10 and may range from 0 through 308.
•
The plus and minus signs preceding the coefficient and exponent are optional. All other
elements of the format are required.
•
A floating point literal must appear as a continuous string of characters with no intervening
spaces.
~0229400
B-5
Need help?
Do you have a question about the 3300 and is the answer not in the manual?