3 ms·
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
by progval 9y ago
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.
- lurquer 9y agoAgreed. 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.