I suggest you show how to get an absolute comparison in the documentation. I have found absolute comparisons most useful (but also relative sometimes).
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 Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB UK +44 1539 561830 Mobile +44 7714 33 02 04 Mobile mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] | -----Original Message----- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] Behalf Of Gennadiy Rozental | Sent: Wednesday, July 09, 2003 10:55 AM | To: [EMAIL PROTECTED] | Subject: [boost] Re: Re: test_fp_comparisons and rounding errors | | | | > Could you please be more specific about which Boost.Test features you | think | > should remain and which should be removed or modified? I'm having trouble | > relating the discussion to the actual Boost.Test public interface. | > | > Thanks, | > | > --Beman | | The only thing I propose to change is to prohibit defining tolerance by the | number of rounding errors. User still will be able to use BOOST_CHECK_CLOSE | tool with the FP tolerance as a third parameter. | | Gennadiy. | | | | _______________________________________________ | Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost | | _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost