Logic cannot be used to describe floating point numbers. We prove this by
contradiction. Let's suppose logic could be used to describe floating
point numbers. First we assume that the conversion algorithm from the
floating point number to the on-screen representation is deterministic,
this can be easily verified from the glibc source. From my experiment we
can then see that
a!=a
We also use an obvious tautology
a=a
and we got a contradiction. QED. [X]
Floating point numbers are like a remnant from the era of analog
computers with their ubiquitous noise - you write 1V into a sampling
amplifier and when you read once, you get 1V, second time you get 0.999V
etc.
I guess the name floating point numbers is derived from the fact that
the point on the number axis representing a variable value is constantly
moving up and down - like floating on a sea.