Boost logo

Boost :

Subject: Re: [boost] [test] floating point comparison
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2015-04-27 22:23:50


Raffi Enficiaud <raffi.enficiaud <at> mines-paris.org> writes:

> The corresponding equivalent code should be
>
> bool check( float a, float b, float tolerance )
> {
> using namespace boost::math::fpc;
> close_at_tolerance obj(tolerance);

     close_at_tolerance<float> obj(tolerance);

> return obj(a,b);
> }

Gennadiy


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk