no need to check for NaN
Merge pull request #8 from efernandez/check_nan

checks for not finite range (+Inf, -Inf, NaN)