Skip to content

Commit

Permalink
[python/en] "rounds down" -> "rounds towards zero" (#4944)
Browse files Browse the repository at this point in the history
  • Loading branch information
verhovsky authored May 13, 2024
1 parent 90a16a6 commit c3f67d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3f67d3

Please sign in to comment.