2 ms·
Nobody gives a hoot about 0.000001 cents. Round to the nearest 1/100 cent after adding or subtracting doubles, and you will be fine in 99.99999% of applicatio
by CamperBob2 4y ago
Nobody gives a hoot about 0.000001 cents. Round to the nearest 1/100 cent after adding or subtracting doubles, and you will be fine in 99.99999% of applications.
The cardinal sin isn't using doubles for currency; it's using them without understanding either the tool or the job that you're asking the tool to perform.
- wyager 4y agoYou've clearly never worked with accountants.
- CamperBob2 4y ago[Citation needed]
- mths 4y agoYou've clearly never worked with accountants. [1] [1] https://news.ycombinator.com/item?id=34717487 https://news.ycombinator.com/item?id=34717487
- CamperBob2 4y agoI don't know what I expected
- 8n4vidtmkvmk 4y agoI've been using doubles for currency knowing full well that i probably shouldn't. for 8 years now. so far I've only noticed being off by a cent here and there. yep.. just don't care. will cost more than a penny to fix it now.