Add Error when NaNs are created during calculation
Merge pull request #318 from benjello/master

Add Error when NaNs are created during calculation