Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-05-25 12:04:50

"Jody Hagins" <jody-boost-011304_at_[hidden]> wrote in message
> I have re-read everything I can find about BOOST_CHECK_CLOSE, and the
> doc on floating point comparison algorithms (i.e.close_at_tolerance).

BOOST_CHECK_CLOSE( x, y, t ) checks that x and y does not differ for more
then t persent. IOW:

|x-y|/|x| < t and |x-y|/|y| < t

> Currently, I have a test, using BOOST_CHECK_CLOSE() which passes, no
> matter how big/small I set the tolerance; yet the values are different.

Could you show your tests and Boost.Test output.


Boost list run by bdawes at, gregod at, cpdaniel at, john at