recognize infs nans

Ignore-this: 30c3984a6872a890d8395c43d892332c

darcs-hash:20130727222755-055d6-24adf530140cabbdbba69bfe89751a3eb0f3bea1