
Hi
I have a flow with a variable with type float. If I try to set this via computation to a value without a decimal it populates correctly. If however the result does include a decimal then it rounds down. For Example
div(200,100) results in 2
div(50,100) results in 0, however I want 0.5
Anybody know what I am doing wrong?
Regards
Jon
Hi @Jonfarmer4999,
This should work:
div(50.0,100.0)
Are you retrieving whole numbers which you are inputting in your div? Otherwise you can first convert them to a float before the div.
div(float(100),float(200))
Basically one of the values needs to be of type float to get a result of type float: