|
Boost Users : |
Subject: Re: [Boost-users] [test] floating point comparison
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2014-01-12 22:16:34
Matthijs Möhlmann <matthijs <at> cacholong.nl> writes:
> Why does it say that the difference is 0.00376352 and not 0.17....... ?
I means relative difference. Maybe I should have spell it out, but the error
message is already long as is.
BTW, new tool for floating point comparison in fact says "relative
difference".
BOOST_TEST( fp1 != fp2, tolerance );
HTH,
Gennadiy
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net