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>> 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);
> }


Boost list run by bdawes at, gregod at, cpdaniel at, john at