Jon A. Cruz wrote:
On Sep 1, 2008, at 5:05 AM, J.B.C.Engelen@...1578... mailto:J.B.C.Engelen@...1578... wrote:
I disagree. In the case of paths, the current curve's final point is
exactly the same data as the next curve's initial point. 2geom has this
built-in redundancy in path data because it simplifies things a lot. But
it is important to maintain this data duplication. Therefore, these
points should be exactly (binary) equivalent.
Yes, but the main problem with floating point values is that depending on the rounding involved on calculations to get to some value, things may be equivalent but not an exact match for all bits.
Also keep in mind that precision might vary from platform to platform.
Jon,
I was thinking of that just now. Someone could load a perfectly valid svg file with a different opinion of floats than Inkscape, and Inkscape will abort and commit suicide because of it. Overreaction, yes, but software is irrational. :-)
bob