Why does (2/3) evaluate to 0 in rails? : <p>I'm building a sort of number balancer, but I am running into a problem where even in my console (2/3) evaluates to 0... which makes no sense. I'm fairly sure I'm working with floats, or integers, but why would it fail in the console? Anyways, any help is appreciated, I'm just trying write something to help me get the percentage of the total. (I.E. 2 of 3 is 66.6666%)</p>
