I have the following code:
It sets total to 0 (with type of double correctly assigned.) At the end of each iteration it sets total equal to the sum of total plus the difference of in minus out. However, the total stays at 0 for the entirety. You can see in the logs below that in should be subtracting the out. and the total should reflect this, however it stays zero.

