- 3
What is double slash // used for
4 Respuestas
+ 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.
+ 2
Please provide the programming language for this.
+ 1
In python for integer divison
For C,C++,Java, JavaScript,Kotlin,Golang. For single line comments
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.