Hacker News new | ask | show | jobs
by h2odragon 1648 days ago
This is an issue that has bitten people before. Indeed, there's probably been some discussion of it and might even be some common mitigations taught as "best practice" in some places.

Do we ever need to store floats? using them in flight is one thing, but stored data so often needs to be some fixed precision.

1 comments

If you want to type pun floats, store hexadecimal literals. Those will be accurate.