0

floor division

hey if floor divisions can also be used in floats then print(1.2//6) should be what?

23rd Nov 2020, 10:44 AM
HARISHRI S
2 Réponses
+ 5
U can try it yourself in the code playground
23rd Nov 2020, 10:46 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 2
1.2/6 = 0.2 So you drop the fractional part (.2) and that leaves 0
23rd Nov 2020, 10:49 AM
ChaoticDawg
ChaoticDawg - avatar