1 Sep
2008
1 Sep
'08
12:24 a.m.
On Sun, Aug 31, 2008 at 2:24 PM, Alvin Penner <penner@...1856...> wrote:
Investigation showed the following inequality throws the exception:
(136.653830 , -638.496893) == (136.653830 , -638.496893)
which in hex looks like:
(406114EC2CAB84D2 , C083F3F9A32A10A6) == (406114EC2CAB84D2 , C083F3F9A32A10A7)
would it not be desirable to (instead) put some tolerance for round-off error into the 2geom routine, since the difference between these two points is clearly negligible ?
I second that. It's never a good idea to test two floating point numbers for equality. You should always have an epsilon to account for rounding errors.
--
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org