U++ framework
Do not panic. Ask here before giving up.

Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » Capture division by zero
Re: Capture division by zero [message #55297 is a reply to message #55295] Tue, 27 October 2020 19:21 Go to previous message
koldo is currently offline  koldo
Messages: 3461
Registered: August 2008
Senior Veteran
Didier wrote on Tue, 27 October 2020 18:58
Hello Koldo,

Quote:
f your code considers these situations as normal, my friend, you are screwed

I don't know what made you think that was my point of view, and it is not at all my vision (rather the contrary), the only thing I say is that code comes from everywhere and quality is not always as it should be.
So everything that can be done to detect and correct this must be done and made available (including detecting divisions by 0, overflows, ...)

And besides, no one is perfect, errors are everywhere all the time (especially with big teams): so you have to deal with them

Sorry Didier

There must be a misunderstanding. My point of view is debugging all errors, including floating point.
Absolutely I was not referring to you and your point of view.


Best regards
IƱaki
 
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: Read a text file and assign values to variables int and double
Next Topic: compiling issue with Clang
Goto Forum:
  


Current Time: Fri Sep 04 04:33:54 GMT+2 2026

Total time taken to generate the page: 0.00911 seconds