First of all, I hate the fact Java can't just NOT separate the two. It's a bit annoying to keep up with. But anyway:
I have a stack of strings. Some are "4.4" and some are "1".
When they are "popped" they are then converted to a double or an integer depending on certain circumstances that are probably obvious here.
The stack looks like this:
4.4 1 +
They are to be popped and added, but I have a problem right there.
I have no idea how to add 4.4 and 1 and get an exact answer that isn't rounded down or anything like that. So what do I do?