Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » FP exception vs NaN
Re: Capture division by zero [message #55300 is a reply to message #55299] Tue, 27 October 2020 20:47 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Klugier wrote on Tue, 27 October 2020 20:35
Hello,
I slowly stop understanding what this thread is about?


I am trying to discuss relative merits of using FP exceptions vs NaNs. Mostly because this is still a hot topic for me. Please forget about CrashHandler, that problem is solved (thanks), this is important and interesting topic.

In one way I am just checking that my latest mind model of situation is correct...

Quote:

I think it is perfectly fine to validate input each time it can be wrong - this is the secure coding principles.


It is perfectly fine when possible. Usually it is not or it is too complex to rely on.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dumb bug. Improper use of Null
Next Topic: strange MinGw return
Goto Forum:
  


Current Time: Tue May 07 14:42:54 CEST 2024

Total time taken to generate the page: 0.01363 seconds