3 ms·
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 wa
by tightbookkeeper 2y ago
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.