0

What's the meanings of'//'and'%'?

13th Aug 2017, 12:59 PM
B-B ball
1 Respuesta
+ 2
// means "floor division" e.g. 13/3=4...1 so regardless of the remainder, 13 // 3 = 4 % means "modulo", so it gives the remainder. so 13 % 3 = 1
13th Aug 2017, 1:11 PM
李立威