I have found another similar question, but the answer there talks mainly about C/C++, and does not mention about the division operator. So, in C/C++ and Java, dividing an integer by an integer returns an integer. On the other hand, in Python, a single slash will return a floating point while a double slash will return an integer. And I currently do not know about Perl and Ruby. What is the historical factor that affectsof the result of the division operator?