Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2007-02-16 13:19:45


Glenn Schrader wrote:
> Hmmm.
>
> An absolute difference is:
>
> BOOST_CHECK_CLOSE( x, y, 1e-5 );
>
> True??

No!

That test will fail if the relative difference between x and y is greater
than 1e-5% (1e-7 relative difference in other words).

John.


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