summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortomaszn <tomaszn@users.noreply.github.com>2024-07-04 21:29:51 +0200
committerGitHub <noreply@github.com>2024-07-04 13:29:51 -0600
commit4825b6039d379668ce3e6595ea79dcb94b1fb4e5 (patch)
tree3d79de05dc50f3849ef65652165a98f4d9e371ab
parentaed24ef78860c9ff4592dfbb2c4fcc4fdf630f1f (diff)
[python/en] Correct floor division examples (#4993)
-rw-r--r--python.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown
index a045e784..4f1c1cdb 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -39,7 +39,7 @@ syntactic clarity. It's basically executable pseudocode.
10 * 2 # => 20
35 / 5 # => 7.0
-# Integer division rounds towards zero for both positive and negative numbers.
+# Floor division rounds towards negative infinity
5 // 3 # => 1
-5 // 3 # => -2
5.0 // 3.0 # => 1.0 # works on floats too