CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   ParaView (http://www.cfd-online.com/Forums/paraview/)
-   -   problem: division PythonCalculator (http://www.cfd-online.com/Forums/paraview/103899-problem-division-pythoncalculator.html)

cboss June 28, 2012 12:18

problem: division PythonCalculator
 
Can someone perhaps check / confirm the problem I face with the PythonCalculator ?

Expression 1 / 2 gives the (wrong) result 0.
While 2 / 1 gives the correct result 2.

(Version: WIN, 3.14.1 64-bit)

Thank you very much,
Christoph

cboss July 6, 2012 12:51

Update:
In my case:
- Expression "1 / 2" still doesn't work, returns wrong value "0"
but
- Expression "1.0 / 2" works, returns "0.5"

Christoph


All times are GMT -4. The time now is 10:51.