Skip to content

Number Conventions

The F-format introduced in the previous section has a redundancy problem: the same value can be written many different ways. For example:

0.12345×103  =  0.012345×104  =  0.0012345×1050.12345 \times 10^3 \;=\; 0.012345 \times 10^4 \;=\; 0.0012345 \times 10^5

All three are identical in value but occupy different slots in the discrete floating-point set, wasting representable values. A convention eliminates this redundancy by requiring a specific canonical form.


Convention 1: Standard Form

Rule: The first mantissa digit d1d_1 is always 1.

X=± (0.1⏟d1 d2 d3 … dm)β  ×  β eX = \pm\,(0.\underbrace{1}_{d_1}\,d_2\,d_3\,\ldots\,d_m)_\beta \;\times\; \beta^{\,e}

Because d1=1d_1 = 1 is fixed, it carries no information and so it need not be stored. This is the idea behind the implicit leading bit used in IEEE 754.

Example: Binary, β=2,m=3,emin⁡=−1,emax⁡=2\beta=2, m=3, e_{\min}=−1, e_{\max}=2

With d1=1d_1 = 1 fixed, only d2d_2 and d3d_3 are free (2 bits → 4 choices):

MantissaBinary valueDecimal value
0.1000.1002−12^{-1}0.50.5
0.1010.1012−1+2−32^{-1}+2^{-3}0.6250.625
0.1100.1102−1+2−22^{-1}+2^{-2}0.750.75
0.1110.1112−1+2−2+2−32^{-1}+2^{-2}+2^{-3}0.8750.875

Largest number (largest mantissa × largest exponent):

With and without negative support, the largest number is:

Xmax⁡=(0.111)2×22=78×4=3.5X_{\max} = (0.111)_2 \times 2^2 = \frac{7}{8} \times 4 = \mathbf{3.5}

Smallest positive number:

Without negative support (smallest mantissa × smallest exponent):

Xmin⁡=(0.100)2×2−1=12×12=0.25X_{\min} = (0.100)_2 \times 2^{-1} = \frac{1}{2} \times \frac{1}{2} = \mathbf{0.25}

With negative support -(largest mantissa × smallest exponent):

Xmin⁡=−(0.111)2×22=−78×4=−3.5X_{\min} = - (0.111)_2 \times 2^{2} = - \frac{7}{8} \times 4 = \mathbf{-3.5}

Convention 2: Normalized Form

Rule: The first digit of the mantissa is always 1; and d1=1d_1 = 1 is shifted to the right by 1 position.

X=± (0.1d1 d2 … dm)β  ×  β eX = \pm\,(0.1d_1\,d_2\,\ldots\,d_m)_\beta \;\times\; \beta^{\,e}

Now all mm digits d1,…,dmd_1, \ldots, d_m are free, giving twice as many distinct mantissas as Standard Form.

Example: Binary, β=2,m=3,emin⁡=−1,emax⁡=2\beta=2, m=3, e_{\min}=−1, e_{\max}=2

d1,d2,d3d_1, d_2, d_3 are all free → 23=82^3 = 8 mantissas, ranging from 0.10000.1000 to 0.11110.1111:

0.1000=0.50.1111=0.5+14+18+116=15160.1000 = 0.5 \qquad 0.1111 = 0.5 + \tfrac{1}{4} + \tfrac{1}{8} + \tfrac{1}{16} = \tfrac{15}{16}

Largest number (largest mantissa × largest exponent):

With and without negative support, the largest number is:

Xmax⁡=(0.1111)2×22=1516×4=3.75X_{\max} = (0.1111)_2 \times 2^2 = \frac{15}{16} \times 4 = \mathbf{3.75}

Smallest positive number

Without negative support (smallest mantissa × smallest exponent):

Xmin⁡=(0.1000)2×2−1=12×12=0.25X_{\min} = (0.1000)_2 \times 2^{-1} = \frac{1}{2} \times \frac{1}{2} = \mathbf{0.25}

With negative support -(largest mantissa × smallest exponent):

Xmin⁡=−(0.1111)2×22=−1516×4=−3.75X_{\min} = -(0.1111)_2 \times 2^2 = -\frac{15}{16} \times 4 = \mathbf{-3.75}

Convention 3: Denormalized Form

Rule: Instead of starting with 0.10.1, the number starts with a whole 1 in front of the decimal point, followed by the mm free fractional digits.

X=± (1.d1 d2 d3 … dm)β  ×  β eX = \pm\,(1.d_1\,d_2\,d_3\,\ldots\,d_m)_\beta \;\times\; \beta^{\,e}

Example: Binary, β=2,m=3,emin⁡=−1,emax⁡=2\beta=2, m=3, e_{\min}=−1, e_{\max}=2

Just like Convention 2, all 3 bits (d1,d2,d3d_1, d_2, d_3) after the decimal are free to change. This gives us 23=82^3 = 8 possible mantissas, ranging from 1.0001.000 to 1.1111.111.

1.000=1.01.111=1+12+14+18=158=1.8751.000 = 1.0 \qquad 1.111 = 1 + \frac{1}{2} + \frac{1}{4} + \frac{1}{8} = \frac{15}{8} = 1.875

Largest positive number: (largest mantissa × largest exponent)

Xmax⁡=(1.111)2×22=158×4=7.5X_{\max} = (1.111)_2 \times 2^2 = \frac{15}{8} \times 4 = \mathbf{7.5}

Smallest positive number

Without negative support (smallest mantissa × smallest exponent):

Xmin⁡=(1.000)2×2−1=1.0×0.5=0.5X_{\min} = (1.000)_2 \times 2^{-1} = 1.0 \times 0.5 = \mathbf{0.5}

With negative support -(largest mantissa × largest exponent):

Xmin⁡=−(1.111)2×22=−158×4=−7.5X_{\min} = -(1.111)_2 \times 2^2 = -\frac{15}{8} \times 4 = \mathbf{-7.5}

Side-by-Side Comparison

FeatureConv. 1 (Standard)Conv. 2 (Normalized)Conv. 3 (Denormalized)
Format0.1 d2 … dm0.1\,d_2\,\ldots\,d_m0.1 d1 d2 … dm0.1\,d_1\,d_2\,\ldots\,d_m1.d1 d2 … dm1.d_1\,d_2\,\ldots\,d_m
Free bitsm−1m - 1mmmm
Unique combinations (for m=3m=3)22=42^2 = 423=82^3 = 823=82^3 = 8
Max value (Xmax⁡X_{\max})3.53.53.753.757.57.5
Min positive (Xmin⁡X_{\min})0.250.250.250.250.50.5

Note: Convention 3 allows us to reach much larger maximum numbers because the whole number portion starts at 1 instead of 0.


The Zero Problem