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

You never want to be lossy with user inputs. Save what they told you and then convert for internal logic.

The OP just described a language feature where you want to multiply euros with usd one place and yen and dinar in another.

You don’t need to do that which is why a decimal or 64 bit int is a fine language approach.



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

Search: