+ 2

What what is floor division

print(“I’m only 13 so please help me”) https://code.sololearn.com/WSLCMm5gY0bP/?ref=app

1st Dec 2020, 11:47 AM
Kabilan
Kabilan  - avatar
11 Respuestas
+ 4
It's division with no remainder. 10 // 2 = 5 5 // 2 = 2
1st Dec 2020, 11:49 AM
Slick
Slick - avatar
+ 2
Is there any language that has a ceiling division (without the need for a second operation to round up)?
2nd Dec 2020, 8:04 PM
Sonic
Sonic - avatar
+ 1
thanks
1st Dec 2020, 11:50 AM
Kabilan
Kabilan  - avatar
+ 1
Kabilan please tag relevant programming language. As you can see below our answers may vary from programming language to programming language. Slick This will work in python. But in javascript. “//” means start of single line comment in javascript. This is like “#” in python. In javascript. Math.floor(10/2);
1st Dec 2020, 12:00 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
+ 1
Slick I am not good in c 😅. I can't say about c.
1st Dec 2020, 12:09 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
+ 1
Haha no worries but yeah it may be closer to js than you think! In C: EDIT: // single line /*...*/ multiline
1st Dec 2020, 12:11 PM
Slick
Slick - avatar
+ 1
Thanks BeegCat I can always count on you even when I'm terribly wrong! hahaha
1st Dec 2020, 12:30 PM
Slick
Slick - avatar
+ 1
basically just divide it and then drop the remainder, easy!
2nd Dec 2020, 3:39 AM
Yellow Keys
Yellow Keys - avatar
0
🇮🇳Vivek🇮🇳 so like in C as well?
1st Dec 2020, 12:01 PM
Slick
Slick - avatar