You need to make sure the values you're adding are numbers. Use this code:
Thank you, that did the trick! However, I must ask... Why is that the very same script works fine when it is adding only three values, but fails to work for this instance. For clarification, the other fields have positives, negatives and blanks, as well. They work just fine.
If any of the values that are being added is a string (for example, if it's blank), then the "+" operator treats the entire thing as a string and concatenates the values, instead of adding them up.
So when you're adding these values: 156+0+""+5
The result is "1565" because it's adding it up like this :
156+0 = 156
156 + "" = "156"
"156" + 5 = "1565"
Ah! I think I understand. In the scripts that appeared to work, the blanks were the last values being added. Theoretically, if I throw a blank in the middle, they should react the same way this one was.