The Python Oracle

How can I force division to be floating point? Division keeps rounding down to 0?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 3

--

Chapters
00:00 Question
00:54 Accepted answer (Score 848)
01:17 Answer 2 (Score 749)
01:57 Answer 3 (Score 208)
05:39 Answer 4 (Score 137)
05:48 Thank you

--

Full question
https://stackoverflow.com/questions/1267...

Question links:
[Why does integer division yield a float instead of another integer?]: https://stackoverflow.com/questions/1282...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #floatingpoint #integer #division #python2x

#avk47