3 ms·
> Most of the time we need to store monetary values with two decimal places (cents). Yeah who cares about fractions of pennies anyway. Just makes things compli
by mvc 6y ago
> Most of the time we need to store monetary values with two decimal places (cents).
Yeah who cares about fractions of pennies anyway. Just makes things complicated.
- magicalhippo 6y agoYeah for being so uptight about just about everything, the officials seems quite relaxed about values slipping between the cracks due to lack of decimal places. Like, total invoice value can only be specified with two decimal digits, typically in foreign currency. Yet we also have to specify per-line value in local currency, also with only two digits. And then the per-line values are used to calculate taxes and whatnot...
- jrochkind1 6y agoThe US IRS (tax agency) allows you to round nearly all values to dollars ignoring cents altogether.