0
What is the meaning of //?
2 ответов
+ 5
Python has two division operators, a single slash character for classic division and a double-slash for “floor” division (rounds down to nearest whole number). Classic division means that if the operands are both integers, it will perform floor division, while for floating point numbers, it represents true division.
10/3 3.333333333333335
10//3 3