0

What is the meaning of //?

21st Apr 2019, 2:11 AM
Tri-Lex Suh
Tri-Lex Suh - avatar
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
21st Apr 2019, 2:19 AM
Edwin
Edwin - avatar