Like a lot of langage, when you do 1/2, it perform the division of 1 by 2 and return the quotient, so 0 here.
n/m => n = m * q + r
1/2 => 1 = 2 * 0 + 1
Let's be pragmatic : just multiply by a decimal, like this :
(sum(AnswerCount) * 1.0)/count(*)
And you will get decimal instead of int.