$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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