+ 2
What is //?
// meaning
2 Respuestas
+ 47
// means floor division.
it basically checks how many times a number can be divided by another number :
and the remainder, if any, is usually disregarded. e.g
41//6 = 6
36//6 = 6
but
-41//6 = -7
-36//6 = -6
+ 8
Works a bit counterintuitive for negative numbers, though.
-36//6 = -6
-41//6 = -7
Anyhow, it always returns a result of integer type.