Everyone here knows that floating point isn't perfectly representing the real numbers. What is the point of this comment? What does it have to do with what I posted? Why give another example when another was talked about already?
The other examples involve things like running out of memory and time, the impossibility of real numbers, precision of giant numbers. While the actual problem begins very close to 1+1.
Forget everything else, I need to pay my bills, this involves money.
I didn't say anything else because it is hard not to make sarcastic jokes and devolve into a rant.
You break down a problem to it's smallest parts then you solve those small problems. It seems very basic.
The smallest problem is c = a + b NOT a + b
One can do c = 2.03 , there is no problem storing the number.
One can also do 103 + 100 like c = ((a100) + (b100))/100
This looks even more hideous than c = asfdsADD(a,b) but at least you don't need to hurl around a big num lib to do 1+1.
If things get ever so slightly more complicated than 1+1, what should be a bunch of nice looking formulas looks horrible. Heaven forbid one wants a percentage of something. I would have to think how to accomplish that without the lib.
I have a very slow brain with very little memory and many threads, I'd much rather spend cpu cycles.