A floating-point literal is a mantissa, which consists of string of decimal digits, an optional decimal point (the ASCII period character), and an optional exponent. A floating-point literal is of type Double
if no type character or the Double
type character is specified. If the Single
type character is specified, the literal is of type Single
. If a floating-point literal's type is at odds with the size required to hold the floating point literal, an error results.
F
R
.
IntLiteral [ Exponent ] |.
IntLiteral [ Exponent ] |E
[ Sign ] IntLiteral+
| -