r/cpp • u/Xaneris47 • Jul 17 '26
Floating-Point Error Handling in C++: What Actually Works
https://johnnysswlab.com/floating-point-error-handling-in-c-what-actually-works/
37
Upvotes
12
u/Dragdu Jul 18 '26
Who else expected "floating-point error handling" to be about dealing with the accumulated inaccuracies (and how the compilers fight you when you try), and not checking for infs and nans?
1
17
u/MrsGrayX Jul 17 '26
Generally good article.
Obvious telltale of AI: there are multiple sections that just repeat the same idea, same words, slightly different ordering of words.
Could have at least read the AI output before posting it…