Skip to content

Floor division (//) does mathematical division with the floor functio…#373

Merged
erocarrera merged 1 commit intoerocarrera:masterfrom
j-t-1:floor_division
Apr 7, 2023
Merged

Floor division (//) does mathematical division with the floor functio…#373
erocarrera merged 1 commit intoerocarrera:masterfrom
j-t-1:floor_division

Conversation

@j-t-1
Copy link
Copy Markdown
Collaborator

@j-t-1 j-t-1 commented Apr 5, 2023

…n applied to the result. For floating point numbers, int(x) truncates towards zero. Thus for positive numbers, but not for negative, the functionality is the same, with floor division terser and avoids extra parentheses.

…n applied to the result. For floating point numbers, int(x) truncates towards zero. Thus for positive numbers, but not for negative, the functionality is the same, with floor division terser and avoids extra parentheses.
@erocarrera erocarrera merged commit 270b44e into erocarrera:master Apr 7, 2023
@j-t-1 j-t-1 deleted the floor_division branch April 29, 2024 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants