Update python3.html.markdown

This commit is contained in:
Gaven Finch 2019-02-05 12:43:07 -07:00 committed by GitHub
parent 4eb2baaf0c
commit 08bd255df5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,10 +41,10 @@ Note: This article applies to Python 3 specifically. Check out [here](http://lea
10 * 2 # => 20
35 / 5 # => 7.0
# Result of integer division truncated down both for positive and negative.
# Integer division rounds down for both positive and negative numbers.
5 // 3 # => 1
5.0 // 3.0 # => 1.0 # works on floats too
-5 // 3 # => -2
5.0 // 3.0 # => 1.0 # works on floats too
-5.0 // 3.0 # => -2.0
# The result of division is always a float