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

Sure, but using floats is still the wrong way to handle this. Much better to just decide how much accuracy you need and set up your fixed-point system to handle that. Additionally you might want e.g. rationals to handle any rate that multiplies amounts.


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

Search: