Can you please specify the types of your four variables (ats, askVol, bidVol, tickValue)?
In the case that they are all ints, your result will be an int. Here is an example:
int answer = 0; int firstNumber = 33; int secondNumber = 42; int thirdNumber = 12; answer = (firstNumber + secondNumber) / (thirdNumber); Print(answer.ToString()); // will print out 6
"When you divide two integers, the result is always an integer. For example, the result of 7 / 3 is 2."
Is your ats variable a double? What happens when you cast askVol, bidVol, and tickValue as doubles?
Example:
double answer = 0; int firstNumber = 33; int secondNumber = 42; int thirdNumber = 12; answer = (double)(firstNumber + secondNumber) / (double)(thirdNumber); Print(answer.ToString()); // will print out 6.25, the correct answer
Comment