summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
diff options
context:
space:
mode:
authorBoris Verkhovskiy <boris.verk@gmail.com>2024-05-13 11:32:40 -0600
committerGitHub <noreply@github.com>2024-05-13 11:32:40 -0600
commitc3f67d32c8dfd16a08662b8301686f7335a83823 (patch)
treeaebfa6ef0a487ff121218d63116dc95252ef05df /python.html.markdown
parent90a16a6d5e317fc58030625945ded8b83f1055b5 (diff)
[python/en] "rounds down" -> "rounds towards zero" (#4944)
Diffstat (limited to 'python.html.markdown')
-rw-r--r--python.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 0cdf256a..a045e784 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 down for both positive and negative numbers.
+# Integer division rounds towards zero for both positive and negative numbers.
5 // 3 # => 1
-5 // 3 # => -2
5.0 // 3.0 # => 1.0 # works on floats too