Binary floating-point constant

A binary floating-point constant is a mantissa followed by an exponent and the letter B.

The mantissa is a binary fixed-point constant. The exponent is the letter E, S, D, or Q followed by an optionally-signed decimal integer (meaning 2 to the power of this integer). Constants using E have a precision (p) where p is the number of binary digits of the mantissa. Constants using S, D, and Q always have maximum single, double, and extended precisions, respectively.

Table 1. Examples of binary floating-point constants
Constant Precision
101101E5B (6)
101.101E2B (6)
11101E-28B (5)
11.01E+42B (4)
1S0b (21)
1D0b (53)
1Q0b (64) (Windows)
1Q0b (106) (AIX)
1Q0b (109) (z/OS)