$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2007-02-23 13:30:10
"Paul A Bristow" <pbristow_at_[hidden]> wrote in message
news:E1HKX3w-0006w7-Sj_at_he304war.uk.vianw.net...
>
>
>>-----Original Message-----
>>From: boost-bounces_at_[hidden]
>>[mailto:boost-bounces_at_[hidden]] On Behalf Of Gennadiy Rozental
>>Sent: 23 February 2007 02:11
>>To: boost_at_[hidden]
>>Subject: Re: [boost] Boost Test Library: general floating
>>point comparisons
>>
>>There is another alternatve:
>>
>>BOOST_CHECK_DIFF( a,b, PERCENT( t ) )
>>BOOST_CHECK_DIFF( a,b, RELATIVE( t ) )
>>BOOST_CHECK_DIFF( a,b, EPSILON( t ) )
>>BOOST_CHECK_DIFF( a,b, ABSOLUTE( t ) )
>>
> This seems unambiguous and reads well (though I would prefer DIFFERENCE
> spelt out in full - nearly everyone is going to use
> copy'n'paste fir this job rather than typing, so it isn't more trouble and
> reads better, especially for those whose 1st language
> isn't english ;-)
I guess it's ok.
Gennadiy