Added support for NaN, Infinity, and +Infinity