why it producing float value for the both given integer value multiplication | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

why it producing float value for the both given integer value multiplication

Float o/p ?

12th Nov 2019, 5:31 PM
Naveen M
Naveen M - avatar
3 Answers
+ 3
if you do 10/2 you get an float if you do 10//2 you get an int if you do round(10/2) you get an int (floor and ceil of course too)
12th Nov 2019, 5:51 PM
Anton Böhler
Anton Böhler - avatar
0
Ohh really ?
12th Nov 2019, 5:53 PM
Naveen M
Naveen M - avatar
0
Why double slash do that .. What's the diff
12th Nov 2019, 5:54 PM
Naveen M
Naveen M - avatar