check Inf/NaN