Computer Science, asked by rochit1997, 1 year ago

Differentiate between integer division and double division

Answers

Answered by saurabh000345
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.


Answered by lakshay12345
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
Similar questions