|
Boost : |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-05-25 12:15:08
> If I want to check that two values differ by not more than just one binary
> ULP (least significant bit), is the BOOST_CHECK_CLOSE tolerance
>
> numeric_limits<double>::epsilon() * 100.?
>
> *100. because tolerance is in percent - sniff ;-)
Documentation explicitly emphasize that tolerance is in percents. Previously
there was a lot of confusion, when people tried to employ this check to do
absolute comparisons. Now it's clear - comparisons are relative (to the
value modules)
Gennadiy
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk