Skip to content

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