News for hackers. Stuff that matters.
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.

Re:Why floats suck - accurate galaxy-wide coordinates in 128... by palish on Monday May 02, 2011 @05:24PM (#2507899)
"And your simulation is probably faster with appropriate int math than any float math will be."

This isn't true for modern CPUs, especially if you use SIMD vector operations.