+ 1
What's the difference between divide and floor division operator?
4 Antworten
+ 16
Division : 5/2 = 2.5
Floor Division : 5//2 = 2
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2273/?ref=app
+ 3
Normal division will give a floating point number and floor division gives whole number.
24/12 = 2.0 instead of 2
24 // 12 = 2 instead of 2.0
/ - is normal division it will give floating value
// - is floor division it will give integer value
+ 1
thanks
0
inorder words floor division rounds down