In article , Jerry Avins writes: |> |> It may be easy to do with floating point, but I bet it's more likely to |> be bug free the first time around in integer, especially when the final |> result must be integer in either case.
It isn't, and I have done it in both.
|> > Using integers doesn't eliminate |> > the problem - it merely means that you get the exact same movements |> > on all systems - not a very useful property. |> |> If "you get the exact same movements on all systems" and there is no |> closure error ever -- if, in other words, the plotter is always on the |> grid point closest to the point calculated with infinite precision -- |> how does that not eliminate the problem?
It does. You were using infinite precision integer arithmetic? Please tell.
The problem of ensuring closure when using floating-point is identical to that of doing so using integer.
Regards, Nick Maclaren.