isnan works on mac