How do I get a floating point out of a division in inline script?
It seems like divisions in the inline script are all floor divisions (no decimals) and I was wondering how to make them true divisions (with decimals). I am using OS 3.1.9 and python 2.7.12. I have already read that it is difficult to make true divisions in python two, but I have found some workarounds online and none of them work on my inline script. Any idea what to do? What I have found is:
Get Python 3 division behavior in any given module with the following import at the top:
from future import division
truediv from the operator module operator.truediv(a, b),
a / (b * 1.0).
a / float(b).
None of them work.