Differentiate between integer division and double division
Answers
Answered by
1
integer divisions only give you an integral quotient, while double divisions give you a double. Like, for example for 5/2,
integer division would be 2
double division would be 2.5.
integer division would be 2
double division would be 2.5.
Answered by
0
The former is floating point division, and the latter is floor division, sometimes also called integer division. Regardless of the future import, 5.0 // 2 will return 2.0 since that's the floor division result of the operation. It helps to clarify for the Python 2.x line, / is neither floor division nor true division.
Read more on Brainly.in - https://brainly.in/question/3978007#readmore
Read more on Brainly.in - https://brainly.in/question/3978007#readmore
Similar questions