Open tarun-mitruka opened 2 months ago
Using the header cfenv, floating-point exceptions can be trapped, for instance via
cfenv
#include <cfenv> feenableexcept(FE_ALL_EXCEPT & ~FE_INEXACT);
Explore all such options and include it in every test.. to avoid, example, division-by-zero, nans, infs, etc..
Using the header
cfenv
, floating-point exceptions can be trapped, for instance viaExplore all such options and include it in every test.. to avoid, example, division-by-zero, nans, infs, etc..