## ALP Programming Guide and Reference

[prev][next][parent][TOC]

### Decimal Floating-Point Literals

Description

Constraints

Examples

A decimal floating-point literal has a significand part that may be followed by an exponent part. The significand part consists of a digit sequence representing the whole-number part, followed by a period (.), followed by a digit sequence representing the fraction part. The exponent part consists of an introductory character (e or E), followed by an optional sign character (+ or -), followed by a digit sequence representing the exponent.

Decimal-Floating-Point-Literal:
Significand-Part
Significand-Part Exponent-Part
Significand-Part:
Digit-Sequence . Digit-Sequence
Digit-Sequence .
Exponent-Part:
E-Character Digit-Sequence
E-Character Sign Digit-Sequence
E-Character:
e
E
Sign:
-
+
Digit-Sequence:
Digit
Digit-Sequence Digit
Digit: one of:
0 1 2 3 4 5 6 7 8 9