0

Floats?

Do floats happen when ever you use division

9th Jul 2018, 7:05 PM
Jesse
Jesse - avatar
6 Réponses
0
yes, whenever u divide two or more Number, thé result Will be à float
9th Jul 2018, 7:11 PM
ghali lawal
ghali lawal - avatar
+ 1
ok thanks
9th Jul 2018, 8:16 PM
Jesse
Jesse - avatar
0
thanks
9th Jul 2018, 7:13 PM
Jesse
Jesse - avatar
0
no p, it's my pleasure
9th Jul 2018, 7:16 PM
ghali lawal
ghali lawal - avatar
0
I want only add that this is true ONLY from Python 3. On Python 2.x division between integer return always an float trunced to integer
9th Jul 2018, 8:15 PM
KrOW
KrOW - avatar
- 1
if you want an int you can use floor division: a // b # floor division uses two slashes
9th Jul 2018, 9:29 PM
Ulisses Cruz
Ulisses Cruz - avatar