+ 7

Meaning of //

5//2

26th Aug 2019, 8:55 PM
Anuoluwa
Anuoluwa - avatar
18 ответов
+ 11
Floor division
27th Aug 2019, 6:45 PM
Debbie
Debbie - avatar
+ 9
5/2=2.5 ------->Simple division 5//2=2. 0--------->The quotient of the division is the result. 5%2=1 --------->The rest of the division is the result.
28th Aug 2019, 1:54 PM
Mr.Fish
Mr.Fish - avatar
+ 6
I think that this question has also been asked multiple times so if you had searched you would have found the answer that way too.
27th Aug 2019, 3:30 AM
Sonic
Sonic - avatar
+ 5
That's the floor division. 5 // 2 = int(5 / 2) = 2
26th Aug 2019, 8:55 PM
Théophile
Théophile - avatar
+ 4
Run this in your IDE. a = 5/2 # 2.5 print(a, type(a)) b = 5//2 # 2..... as the .5 is removed print(b, type(b))
26th Aug 2019, 9:16 PM
rodwynnejones
rodwynnejones - avatar
+ 3
// is floor division. It will divide the first number by the second number but will round it down if it is not an integer. It does the same as int(5/2), where it does 5/2 but forces it to become an integer. And as I'm sure you know, integers can only be whole numbers. Therefore, 5//2=int(5/2)=2, but 5/2=2.5. I hope this helps! :D
27th Aug 2019, 4:09 PM
Alice R
Alice R - avatar
+ 2
// is floor division, meaning after division it will round the number down always rather than up
27th Aug 2019, 1:32 PM
Joshua Sledden
Joshua Sledden - avatar
+ 2
Floor division...ie. returns only the quotient part
28th Aug 2019, 3:09 AM
Alphin Davis Pomy
Alphin Davis Pomy - avatar
+ 1
// it means floor division (will only give the main value in a decimal
27th Aug 2019, 2:52 PM
Srikant Chatterjee
Srikant Chatterjee - avatar
+ 1
it is floor division example: 9//8 1.0
28th Aug 2019, 4:41 AM
Shaili Shah
Shaili Shah - avatar
+ 1
it means floor division 5/2 =2.5 5//2 =2 the decimals is removed
28th Aug 2019, 6:45 PM
Vanya Erasmus
+ 1
Floor division ,the decimal is removed after division
29th Aug 2019, 1:25 AM
Igbokwe Ifenna
Igbokwe Ifenna - avatar
+ 1
floor division is a division with integer result
3rd Sep 2019, 8:19 PM
Khayreddine ABIDI
Khayreddine ABIDI - avatar
+ 1
for example lets take a number 10, when we divide it with 4 the quotient will come 2. so, basically meaning of // is the quotient that comes after dividing a number. similarly 5//2 will result in 2.
4th Sep 2020, 12:28 PM
Kartik
0
x // y = int(x - (x/y))
27th Aug 2019, 10:14 PM
CyberCyclonic Designs
CyberCyclonic Designs - avatar
0
Bonjour comment vas tu
28th Aug 2019, 6:22 AM
Diby Fofana
0
7//2=3 double slash give only integer value it does not consider float vale 7/2= 3.5
24th Sep 2019, 6:20 PM
Abhishek Pandey
0
it means floor division for ex:14//4=3 answer is 3 as it takes highest value of quotient.
24th Oct 2019, 7:40 AM
Đìvęšh Paŋcħỡlı
Đìvęšh Paŋcħỡlı - avatar