+ 1
What is the difference between single slash and double slash in Python?
3 odpowiedzi
+ 1
/ is division: 3 / 2 = 1.5
// is floor division (integer division): 3 // 2 = 1
+ 2
There are round(), ceil() and floor() functions in the math module.
+ 1
When // is for Floor which Expression are for Round or Ceiling?