Hacker Newsnew | comments | show | ask | jobs | submit login

He really should have used plain integers and calculated in cents.



That is the definition of fixed point.

(Although, if you do it for anything else than currency, you probably would do it in base 2 instead of 10. And yes, I know every base is base 10.)

-----




Applications are open for YC Winter 2016

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: