Yes, you´re right. Forgot to cast the var to double.
But the problem is solved now. Thanks laugh