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 -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -