From 7bcf65278c28cffd32ef051965c2e6401563acc9 Mon Sep 17 00:00:00 2001 From: Evgeniy Ginzburg Date: Wed, 6 Aug 2014 23:45:37 +0300 Subject: comment about floats in integer division --- python3.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python3.html.markdown') 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 -- cgit v1.2.3