Double variable not going negative

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.

image

For some reason, separating the “In - Out” into it’s own assign and then adding that variable with the total works.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.