I have a question about the math in this piece of code.
def by_three?(number) if number % 3 == 0 return true else return false end end
So that's saying if the number is divided by 3 and the remainder is exactly 0 then true, otherwise false. Wouldn't 0 be the only number that would return true then? For example 6 / 3 = 2. Isn't there a remainder in that? Sorry if my math is bad, I'm not terribly good at it. Thanks for the assistance.