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

Igor Mozolevsky mozolevsky at gmail.com
Wed Nov 30 23:21:38 UTC 2011


On 30 November 2011 22:44, Alexander Best <arundel at 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 :-)


More information about the freebsd-wireless mailing list