Density of Floating Point Numbers

This notebook enumerates all possible floating point nubmers in a floating point system and shows them in a plot to illustrate their density.

Relative gap size between consecutive floating point numbers. Notice that the maximum is achieved at $1$.

What about subnormals?