|
|
|
|
|
by smt88
3284 days ago
|
|
This has been answered pretty extensively on Q&A sites like StackOverflow and Quora, so I'd recommend Googling it for the most thorough, specific, and well-vetted answers. Here are links to get you started: - https://stackoverflow.com/questions/1089018/why-cant-decimal... - https://stackoverflow.com/questions/5098558/float-vs-double-... > It blows my mind that so much effort has put into things like functions taking functions as arguments, and the characteristics of classes - yet a computer can't handle basic calculator math out of the box. Much effort was put into it, but no amount of work allows a computer to violate the laws of math. The fact that computers use binary and have limited memory isn't something that can be hand-waved away. You're also talking about two totally different types of problems. Classes make programming languages easier to organize (at least theoretically) -- it's easy to change the syntax of a language, but hard to know exactly how it should look to be the easiest to use. |
|