Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
7779 Discussions

Floating Point Exception Handler to Change Result

Rusty_Zarecor
Beginner
181 Views
We have some very old code here where we utilized functions that caused floating point divide by zero and other floating point exceptions to return a result of zero. I know we should check the inputs for the arguments to functions and divisions but I was interested in knowing if it was possible to write a floating point exception handler that would trap the exceptions and return the result as zero instead of NaN or Inf.

Thanks
0 Kudos
0 Replies
Reply