support NaN, Infinty, and -Infinity decoding