Integer division | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Integer division

It's understandable and expected, then in unit about integer division, in test we should use //, but call output as "quotient" is not enough, better to expand to "integer quotient" etc. I am about this: https://ibb.co/6cKj10w Quotient by dividing 100 by 42 is 2,38095238, so, answer 2 is Integer quotient See screenshot: https://ibb.co/Xt3PfDg

8th Aug 2021, 9:01 AM
E A
5 Answers
+ 1
You mean we should say quotient for 9/3 is 3.0?
8th Aug 2021, 9:31 AM
Simba
Simba - avatar
+ 1
E A you can use symbol @ followed by profile name to tag the person. You are right about it but quotient should be enough, as that is what it results in . "//" Is enough to tell that it will be integer quotient . Some things are understandable due to the context without explicitly stating everything .
8th Aug 2021, 11:29 AM
Abhay
Abhay - avatar
0
Simba, i am not argue, your sentence is true, but opened topic is, in generally, about integer division //. So, output for integer division // (integer quotient) should have difference from output from (simple) division / - "just" quotient". And results of this / division always will have float type, even it's 3.0.
8th Aug 2021, 11:24 AM
E A
0
It was my report to app developers, more precisely to those who took and approved the tests, because a misunderstanding can lead to incorrect conclusions.
8th Aug 2021, 11:26 AM
E A
0
Abhay , thanks you for advice. About quotient. I think you are agree, that are differences between division/ vs integer division//. So, quotients for these also will be different. In case with this test: https://ibb.co/6cKj10w it's written as "quotient". No any context. Or do you mean "context" is because unit 7.1 goes after studying of "Integer division"? Take into account, // was fulfilled by me, after trying with /. User should understand question explicitly, agree? If context was in another - please explain me.
8th Aug 2021, 11:45 AM
E A