I am trying to do some simple math in my model, but for some reason, it chokes on division, or at least when I use the \ symbol. I have tried many different iterations, and all math works and loops great til I try to divide two numbers. Am I using the wrong symbol here?

def up
n = up_votes
x = up_votes + down_votes + neutral_votes
y = x/n * 100
return y
end

def down
return ((up_votes + down_votes + neutral_votes)/down_votes ) * 100
end