Does ROOT (or any standard that ROOT supports) have a way of checking for the NaN value? I have a program that’s producing them like no one’s business, and they’re slipping past all my sentinel checks including a
if(x!=x) one which should catch it. I have tried isnan() but it doesn’t seem to recognize that one.
valgrind is a mem checker, see valgrind.org. You could also try gSystem->SetFPEMask(kAllMask). That will cause an exception to be thrown when a floaing point problem is encountered. You can check the possible parameter values in the enum EFpeMask in TSystem.h.