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
news:20050525120541.09fd4705.jody-boost-011304_at_atdesk.com...
>
> 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.

Gennadiy


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk