- 3

What is double slash // used for

4th Jun 2021, 5:03 PM
Kartik Singh
4 ответов
+ 6
"//" 👆 is used for comments in codes & is also used for floor division as mentioned above. Please, from next time provide more details to your question & make proper use of tags & describe language in your question.
4th Jun 2021, 5:48 PM
Shivani 📚✍
Shivani 📚✍ - avatar
+ 2
Please provide the programming language for this.
4th Jun 2021, 5:38 PM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 1
In python for integer divison For C,C++,Java, JavaScript,Kotlin,Golang. For single line comments
4th Jun 2021, 6:40 PM
Atul [Inactive]
0
The double slash operator returns the integer value of the quotient for example "10/4" will give 2.5 but "10//4" will give 2, it just removes the floating point and return an integer not this operator in a function will be "int(10/4)" where int() is a function which returns an integer value from different data types.
4th Jun 2021, 5:12 PM
Eashan Morajkar
Eashan Morajkar - avatar