4 ms·
I’ve had weird float bugs that I didn’t have time for and fixed by operating on them as strings. Nowadays I’ve found pretty good libraries in common languages d
by user3939382 3y ago
I’ve had weird float bugs that I didn’t have time for and fixed by operating on them as strings. Nowadays I’ve found pretty good libraries in common languages designed to handle the weird edges.
- danhau 3y agoWhat libraries can you recommend?
- user3939382 3y agoFor JS for example https://github.com/MikeMcl/decimal.js https://github.com/MikeMcl/decimal.js The trick is 90% just realizing these types of libraries exist so if and when you run into these requirements you’re not reinventing the wheel on some of these issues.