Fun with floating point arithmatic, not just IEEE 754.

  • The trouble with the floats

    Floating point variables are weird.

    • Their representation is not intuitve.
    • You need to take special care if you want to compare them.
    • Their exactness reduces with every step away from 0.
    • Most of the time we use them although, we actually do not need them.