Skip to content

Minus 1 is meaningless#287

Open
DaoZhang0123 wants to merge 1 commit into
argman:masterfrom
DaoZhang0123:patch-2
Open

Minus 1 is meaningless#287
DaoZhang0123 wants to merge 1 commit into
argman:masterfrom
DaoZhang0123:patch-2

Conversation

@DaoZhang0123
Copy link
Copy Markdown

@DaoZhang0123 DaoZhang0123 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