Boost logo

Boost :

From: Rozental, Gennadiy (gennadiy.rozental_at_[hidden])
Date: 2003-07-11 13:38:50

> Do I understand correctly that
> BOOST_CHECK_CLOSE(v1, v2, 2. * std::numeric_limits::epsilon() );
> would check that the absolute difference between v1 and v2 is
> not more than two eps?
> Paul

No. BOOST_CHECK_CLOSE performs relative errors comparison. See

(Ignore part that tries to calculate the tolerance based on number of
rounding errors)


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