Beware that the second section about fixed-point arithmetic is actually about floating point with exponent in base 10.

Besides, the operations are all wrong and only work for trivial values of the exponents, like 0, 1 and 2.