+ 1

What's the difference between divide and floor division operator?

2nd Apr 2018, 8:20 AM
Prakriti Jaiswal
Prakriti Jaiswal - avatar
4 Answers
2nd Apr 2018, 8:22 AM
šŸŒ›DTšŸŒœ
šŸŒ›DTšŸŒœ - avatar
+ 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
2nd Apr 2018, 8:24 AM
Memphis Reigns
Memphis Reigns - avatar
+ 1
thanks
2nd Apr 2018, 8:23 AM
Prakriti Jaiswal
Prakriti Jaiswal - avatar
0
inorder words floor division rounds down
5th Apr 2018, 11:13 PM
Bate Martin
Bate Martin - avatar