std

How to check for NAN / INF / IND in C++

Recently we had occasional, but serious problems with some software we’re making. The problems were with invalid floating point numbers or C++ NAN and IND/INF errors.