How is it different than "/
"?
I tried print 10//5
and print 10/5
and both gave the same result.
Asked
Active
Viewed 17 times
-1

user0
- 653
- 1
- 7
- 11
-
`//` is integer division – martianwars Jan 02 '17 at 18:10
1 Answers
0
Try:
print 10.0/6
print 10.0//6
The first is regular division, which results in a floating-point number, whereas the latter is integer division, which truncates the decimal part.

synchronizer
- 1,955
- 1
- 14
- 37
-
-
-
I was trying not too give absolutely everything away but yes, I see your point. Sorry about that. – synchronizer Jan 02 '17 at 18:14