News for hackers. Stuff that matters.
Re:Show HN: TerrainVer – Generate Worms-Style Cartoon Terrai... by progval on Sunday April 08, 2018 @04:08AM (#16785164)
Why no fractions? If you are worried about loss of precision caused by floating-point numbers, you can use exact fractions. For instance, there is "mpq" in GMP (for C), the "fractions" module in Python's stdlib, or you could hand-write a small fractions library yourself.
Re:Show HN: TerrainVer – Generate Worms-Style Cartoon Terrai... by lurquer on Sunday April 08, 2018 @12:06PM (#16786722)
Agreed. It's a sort of silly constraint. Not truly necessary. But, there are other aspects of the project that make it much easier to completely and utterly do away with floating point.