better processing numbers, added NaN, Infinities