Other places that use abs
as opposed to std::abs
for floats/doubles that could be affected:
#1415
Milestone
abs
as opposed to std::abs
for floats/doubles that could be affected:
#1415
Following from #1409, we need to check other places that use
abs
for floats/doubles that could be affected. Simplest is to just replace them withstd::abs
, but it'd be good to know if there was a problem or not. I guess easiest might be to put an errorabs(1.5)-1>.2
while checking.Copying from #1409 (comment)_
Library: (worrying!)
Utilities:
#include <math.h>
)using namespace std;
)Relatively harmless as error checking:
Test code:
Commented out code, hence harmless (but confusing):
The text was updated successfully, but these errors were encountered: