Belisarius Cawl
kiwifarms.net
- Joined
- Mar 16, 2024
While I was researching COBOL I found out that one of the advantages it had at the time (and since) was native support for (not always decimal) currency typesThat's a floating point calculation and not an int. Monetary values should use a monetary datatype. Floats should always be compared with an epsilon, etc.
I can bitch and moan about language design, but numerical operations being garbage has been a problem since C. It's perhaps the original sin of programming.