10//4 evaluates to 2.0
Why is it evaluated as 2.0 and not just 2? The result is an integer after all, isn't it better to store an integer in an int? Why is it stored as a floating when the fractional part is truncated off anyway?
EDIT: sorry, I meant to write 10//4.0 instead of 10//4
Why is it evaluated as 2.0 and not just 2? The result is an integer after all, isn't it better to store an integer in an int? Why is it stored as a floating when the fractional part is truncated off anyway?
EDIT: sorry, I meant to write 10//4.0 instead of 10//4