+ 1

[DUPLICATE] The different between "/" and "//"

for example 3/5 and 3//5

19th Jan 2018, 5:08 PM
tonny
1 Answer
+ 4
/ means divide, // depends on the language. For most, // is comment. For Python, it is floor division. There are be data types in python, so / will return a decimal if the answer is a decimal. // will not, it will return the floor of the decimal, which means round down.
19th Jan 2018, 5:25 PM
Jacob Pembleton
Jacob Pembleton - avatar