Skip to main content
deleted 52 characters in body
Added to review
Source Link

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?

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 factor that affects the result of the division operator?

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. What is the historical factor of the result of division operator?

Post Closed as "Opinion-based" by Philip Kendall, gnat, Doc Brown
added 7 characters in body
Source Link

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 itthe factor that affects the outcomeresult of the division operator?

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 it that affects the outcome of the division operator?

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 factor that affects the result of the division operator?

deleted 9 characters in body
Source Link

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. Why doesWhat is it that affects the outcome of the division operator work like this in different languages?

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. Why does the division operator work like this in different languages?

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 it that affects the outcome of the division operator?

added 67 characters in body
Source Link
Loading
Source Link
Loading