Still surprised C++ doesn't handle FP errors out of the box, considering its age and complexity. This is finally a step in the right direction. https://johnnysswlab.com/floating-point-error-handling-in-c-what-actually-works/