|
Geometry : |
Subject: Re: [geometry] warning: comparing floating point with == or != is unsafe
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2013-06-06 20:12:43
Adam Wulkiewicz wrote
> Mateusz Loskot wrote:
>> Folks,
>>
>> What's out approach to float-point comparisons across the library?
>> I'm kidding :-)
>>
>> Just for comparisons with Zero, I wonder if we could stick to absolute
>> epsilon comparisons [1].
>>
>> There are some places, i.e. in the index, with such cases and
>> TODO comments too, so perhaps we could decide on it soon.
>>
>> [1]
>> http://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
>>
>
> Which place in the Index do you have in mind?
For example,
/trunk/boost/geometry/index/detail/rtree/linear/redistribute_elements.hpp
lines 98-106
Best regards,
-----
-- Mateusz Loskot http://mateusz.loskot.net -- View this message in context: http://boost-geometry.203548.n3.nabble.com/warning-comparing-floating-point-with-or-is-unsafe-tp4025336p4025338.html Sent from the Boost Geometry mailing list archive at Nabble.com.
Geometry list run by mateusz at loskot.net