Re:Why floats suck - accurate galaxy-wide coordinates in 128...
by jerf on Monday May 02, 2011 @02:34PM
(#2507305)
100000ly / 2^64 = 51 meters and change. And your simulation is probably faster with appropriate int math than any float math will be.
Transforming to relative coordinates doesn't solve all the problems; you do your local calculation with the improved precision, but presumably at some point you then throw that back away again when you translate back to the global coords.
Transforming to relative coordinates doesn't solve all the problems; you do your local calculation with the improved precision, but presumably at some point you then throw that back away again when you translate back to the global coords.