derekovecs: handle nan, inf and NA
2 files changed