Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minus 1 is meaningless #287

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Minus 1 is meaningless #287

wants to merge 1 commit into from

Conversation

wangershi
Copy link

@wangershi wangershi commented Jul 5, 2019

I don't know why we should minus 1 when resizing. Here is some examples in Python 3.6:

>>> (65//32-1)*32
32

Minus 1 will get some mathematic errors, 65 can't be resized to 32 when 64 is resized to 64.

I don't know why we should minus 1 when resizing. Here is some examples in Python3.5:
'''Python
>>> (33//32)*32
32
>>> (31//32)*32
0
'''
Minus 1 will get below errors, 33 can't resize to 0 when 32 is resize to 32.
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.

1 participant