summaryrefslogtreecommitdiffhomepage
path: root/python3.html.markdown
diff options
context:
space:
mode:
authorEvgeniy Ginzburg <Nad.Oby@gmail.com>2014-08-06 23:45:37 +0300
committerEvgeniy Ginzburg <Nad.Oby@gmail.com>2014-08-06 23:45:37 +0300
commit7bcf65278c28cffd32ef051965c2e6401563acc9 (patch)
tree36ece0e26258f6b4a3c9b5656c7c4aa0d3f66393 /python3.html.markdown
parentdaf83c91232a259eee4cadef5f28210b7c83316d (diff)
comment about floats in integer division
Diffstat (limited to 'python3.html.markdown')
-rw-r--r--python3.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index 6e901b6a..dc972196 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -40,7 +40,7 @@ Note: This article applies to Python 3 specifically. Check out the other tutoria
# Result of integer division truncated down both for positive and negative.
5 // 3 # => 1
-5.0 // 3.0 # => 1.0
+5.0 // 3.0 # => 1.0 # works on floats too
-5 // 3 # => -2
-5.0 // 3.0 # => -2.0