Ok, So I'm getting crazy answers to simple math I'm trying to do in Python. After researching, it seems python does math in a strange way that noobs like myself find confusing (floating point). I use python math in several VC commands so it's strange I'm just running into this problem for the first time now.
The PY.ExecString action that is giving me trouble is this one:
result=({Var.var1}-{var.var2})
where both var 1 and 2 are decimals (ie. 0.123456)
When I replace them with the actual numbers instead of variables, the math works fine so for some reason the variables must be in float format instead of integers, I guess?
Anyway, how do I tell that PYExecString to force the result to be an integer and not super long floating point numbers?
I've spent hours on this so I hope someone can help! Thank you!