News for hackers. Stuff that matters.
Re:Why floats suck - accurate galaxy-wide coordinates in 128... by rorrr on Monday May 02, 2011 @02:50PM (#2507376)
You specify the accuracy you need. Let's say, 1 millimeter.

(9.3e10 light years) / (0.001 meter) = 8.79 × 10^29

log2(8.79 × 10^29) = 99.471

So you need 100 bits to represent each coordinate at that precision.

There are no comments on this comment yet.