+ 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
4 Respuestas
+ 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