Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think most people trying to losslessly represent money or similar discrete quantities already have the intuition that you shouldn't use binary floating point, and those that don't are not well served by telling them to math.isclose it, which is at best a fragile bandaid.


I sadly don't think the first part of your sentence is true, from what I've seen, but yes, definitely agree about the second part.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: