divide - How python calculate this division? -


this question has answer here:

how python calculate division?

>>>-3/10 -1 

looks python rounds answer lower value.

>>> -3/4 -1 >>> -3/4. -0.75 >>> -3/10. -0.3 >>> -3/10 -1 

this guess.


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

mysql - How to unscape text from database in android studio -

Making CSS Drop Down Menu 2 Columns -