News for hackers. Stuff that matters.
Re:Why floats suck - accurate galaxy-wide coordinates in 128... by palish on Monday May 02, 2011 @05:19PM (#2507879)
"I wrote some CAD routines once that used decimal arithmetic rather than binary and was amazed at how much better it worked in terms of edges lining up and when you approximate non-square surfaces you get much better tesselation."

That's precisely what I'm working on. What did you use?

P.S. Use 0.125, not 0.100

Re:Why floats suck - accurate galaxy-wide coordinates in 128... by ChuckMcM on Monday May 02, 2011 @05:40PM (#2507969)
I used the Java decNumber class (linked off Mike's web site) and the Java 2D API. Once the 3D API came out it seemed like the visualization code at least should use that. Converting to/from decimals to floats was unnecessarily painful at the time.