I have a function that returns a double:
double d1 = compute(a,b,c);
when I do:
std::cout << d1 << std::endl;
I get:
0.125
but when I do:
BOOST_CHECK_EQU AL(d1, 0.125);
I get:
[0.1249999999999 9999 != 0.125]
failed!
Does unittesting in boost use a special precision?
double d1 = compute(a,b,c);
when I do:
std::cout << d1 << std::endl;
I get:
0.125
but when I do:
BOOST_CHECK_EQU AL(d1, 0.125);
I get:
[0.1249999999999 9999 != 0.125]
failed!
Does unittesting in boost use a special precision?
Comment