Added support for NaN

NaN (case insenitive) can be entered in the fields. The other fields
will also become NaN and the floating point rep becomes one type of
NaN (all 1s).