DEV Community

DDSRY
DDSRY

Posted on • Updated on

Why does / (divide) round down in Python 3.8 ?

Why does it / (divide) round down in Python Programming Language ?

▪ It's not really rounding down, its just dropping the fractional part after
the decimal.

▪ Try this, 9.0/3.0 and compare it to 9/3 and you will see the difference.

Top comments (0)