|
I think teaching the use of float/double for currency is a mortal sin.
Sadly, some teachers don't know any better.
On this, and other forums, you see folks just starting out, clearly doing homework, and they all use floats or doubles.
The real problem is that it works for wimpy testing, and when you put it in production, stuff doesn't add up, the accountants get very mad, and you have a real mess to fix.
Cobol had fixed point built in from day one. For a reason.
|