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

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

python - Pygame screen.blit not working -

c# - Web API response xml language -