+ 1

Why a division between two integer numbers generate a float number in python?

Why a printed division between two integer numbers gives you a float number in python?

29th Mar 2021, 7:32 PM
Davi Amâncio
Davi Amâncio - avatar
2 odpowiedzi
+ 3
Davi Amâncio You're probably using the '/' symbol to divide. You could try usinf '//'. But, anyways, answering your question, it rounds the number to a float point when it divides in Python. Just the way it's, lol
29th Mar 2021, 7:59 PM
philipep
philipep - avatar
+ 2
Guido decided so....thats all
29th Mar 2021, 7:42 PM
Oma Falk
Oma Falk - avatar