3 ms·
I love Ruby too, but "/" giving integer results when both sides of the expression is integer is a frequent source of error, and I'm not convinced it's a good ch
by vidarh 5y ago
I love Ruby too, but "/" giving integer results when both sides of the expression is integer is a frequent source of error, and I'm not convinced it's a good choice - in my experience at least it is rarely (though sometimes) what people want.
- meowface 5y agoThis is why Python 3 changed division to return floats rather than ints. ("//" retains the old floor division behavior.)