+ 6

Why -11//3 = -4 ?

11//3 = 3 It makes sense. 11/3 =3.6666 but we only take integer as result, which is 3. So why we can't apply same logic for negative numbers? (Python language)

4th Jan 2018, 6:08 PM
voja
voja - avatar
2 ответов
+ 8
-4 is the lower or the floor value of -3.66 , in negative numbers the higher the value of negatives, the lower the number is
4th Jan 2018, 6:12 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 3
@Sami yea, i get it. Thanks ! :)
4th Jan 2018, 6:39 PM
voja
voja - avatar