News for hackers. Stuff that matters.
Re:Kotlin Money by tightbookkeeper on Wednesday October 09, 2024 @12:00AM (#41784409)
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.

There are no comments on this comment yet.