floating point: NaN and infinity

@b0rk
very good.

minor addendum: most programming languages have a specific function like isnan() which returns true if a floating point value is NaN, and related functions like isinf(), isnormal() and so forth.

@llewelly @b0rk I usually compare the number with itself. This works because only NaN is unequal to itself.
For infinity you still need the special functions, yes.