Re: comparing floating points via "==" or "!="

[ Available lists | Index of freebsd-wireless | Month of Nov 2011 | Week of 30 Nov 2011 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Igor Mozolevsky <mozolevsky@gmail.com>
Date
30 Nov 2011 23:21:38
Subject
Re: comparing floating points via "==" or "!="
Message-ID
CADWvR2herXkcMaZXFKm_ALBXnVFDhRCNZ-9+-MwHVx5XJPG4AA@mail.gmail.com

In reply to
References to

[ Hide this part ]
On 30 November 2011 22:44, Alexander Best <arundel@freebsd.org> wrote:

> i played a bit with the gcc -Wfloat-equal warning and noticed that inside
> sys/dev/ath/ath_rate/sample/tx_schedules.h, a lot of comparisons of floating
> points are happening ("=="). is there a better way to deal with this?

as opposed to (abs(a-b) < tolerance)?


Cheers,

--
Igor :-)


Elapsed time: 0.144 seconds