Re:Why does 0.1 and 0.2 = 0.30000000000000004?
by wyager on Wednesday February 08, 2023 @06:48PM
(#34717487)
You've clearly never worked with accountants.
Re:Why does 0.1 and 0.2 = 0.30000000000000004?
by CamperBob2 on Wednesday February 08, 2023 @08:11PM
(#34718336)
[Citation needed]
Re:Why does 0.1 and 0.2 = 0.30000000000000004?
by mths on Wednesday February 08, 2023 @10:11PM
(#34719303)
You've clearly never worked with accountants. [1]
Re:Why does 0.1 and 0.2 = 0.30000000000000004?
by CamperBob2 on Wednesday February 08, 2023 @11:54PM
(#34719919)
I don't know what I expected
Re:Why does 0.1 and 0.2 = 0.30000000000000004?
by 8n4vidtmkvmk on Thursday February 09, 2023 @12:16AM
(#34720054)
I'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.
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.