4 ms·
Disclaimer: 30+ year veteran at fixing these fucking bugs. My opinion: just NO. MULTIPLE failures to understand the problem have occurred in this article, and
by fit2rule 7y ago
Disclaimer: 30+ year veteran at fixing these fucking bugs.
My opinion: just NO.
MULTIPLE failures to understand the problem have occurred in this article, and they deal with representation.
A) It is never acceptable to 'round up' on interest payments/loans/debts/balances, without having an explicit line item for why. "Because compiler decision made by programmer" is indefensible.
B) Representation is EVERYTHING. Case in point:
>>>>0.1 + 0.2: Produces 0.30000000000000004 but should be exactly 0.3.
This statement can kill.
C) Standards are there to keep everyone, and everything, 'honest', and by honest it means: everyone understands things implicitly. Explain to grandma why a rounding error has resulted in her teeth falling out, or GTFO.
D) Fixed point is a standard representation. Its not about the precision-fail, its about if everyone gets exactly the same results, every time, in doing the math.
E) Lots and lots of these bugs yet to be fixed.
- logicallee 7y agoGenerally, is the penny indivisible in finance? (So is using integers fine for everything, as long as you remember you you are dealing with cents, not dollars)?