Contents Index Previous Next
2.4.1 Decimal Literals
is a numeric_literal
in the conventional
decimal notation (that is, the base is ten).
E [+] numeral
| E - numeral
for an integer literal shall not have a minus sign.
this rule is in this subclause, it applies also to the next subclause.
An underline character in a numeric_literal
does not affect its meaning. The letter E of an exponent
can be written either in lower case or in upper case, with the same meaning.
these rules are in this subclause, they apply also to the next subclause.
indicates the power of ten by which the value of the decimal_literal
without the exponent is to be multiplied
to obtain the value of the decimal_literal
with the exponent.
Examples of decimal
12 0 1E6 123_456 -- integer literals
12.0 0.0 0.456 3.14159_26 -- real literals
Wording Changes from Ada 83
We have changed the syntactic
category name integer to be numeral.
We got this idea from ACID. It avoids the confusion between this and
integers. (Other places don't offer similar confusions. For example,
a string_literal is different from
Contents Index Previous Next Legal