Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-06-08 11:07:50


"Pierre-Jules Tremblay" <iamtrep_at_[hidden]> wrote in message
news:4590bfef0606080504m24a76fffi9a7b2883f56c37b0_at_mail.gmail.com...
> What would you propose for floating-point comparisons?

BOOST_CHECK_CLOSE - checks that two FP values relative difference doesn't
exceed specified percent.
BOOST_CHECK_CLOSE_FRACTION - checks that two FP values relative difference
doesn't exceed specified value
BOOST_CHECK_SMALL - checks that module of particular value doesn't exceed
tolerance value

Gennadiy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net