Re:Why floats suck - accurate galaxy-wide coordinates in 128...
by arundelo on Tuesday May 03, 2011 @12:51AM
(#2509018)
I'd like hardware that represents fractional parts in binary-coded base-15 -- no rounding on 1/3 as well as 1/10!
[ Parent
| on HN ]
Re:Why floats suck - accurate galaxy-wide coordinates in 128...
by klodolph on Tuesday May 03, 2011 @01:11AM
(#2509053)
1/10 would be a repeating number in base-15, 0.1777777...
(Well, technically, 1/10 is not a repeating number in any base, but you know what I mean.)
Re:Why floats suck - accurate galaxy-wide coordinates in 128...
by arundelo on Tuesday May 03, 2011 @08:18AM
(#2509660)
Oops, you're right! I was misremembering something I had figured out once. It's base-30 that does multiples of 2, 10, and 3 (and 5 etc.). (And 30 is pretty close to a power of 2 so that not much space gets wasted if a BCD-like method is used where the underlying representation is base-2.)