+ 1

Whats the meaning of floor division.//

16th Jan 2017, 6:45 AM
seetha
seetha - avatar
6 Respostas
+ 17
3//2=1 and not 1.5... maybe!!!
16th Jan 2017, 6:48 AM
Frost
Frost - avatar
+ 17
It returns int value of lowest divison... eg:- 3/2 is 1.5 but 3//2 is 1
16th Jan 2017, 6:50 AM
Frost
Frost - avatar
+ 6
In python // is the floor operation where div result is rounded to the next lower integer: 5//2 is 2 but -5//2 is -3
16th Jan 2017, 7:24 AM
ifl
ifl - avatar
+ 1
not understable
16th Jan 2017, 6:49 AM
seetha
seetha - avatar
+ 1
ohhh.. only the integer part. ok. ok
16th Jan 2017, 6:52 AM
seetha
seetha - avatar
+ 1
thank qew@ sid
16th Jan 2017, 6:52 AM
seetha
seetha - avatar