erocarrera / pefile

pefile is a Python module to read and work with PE (Portable Executable) files
MIT License
1.83k stars 516 forks source link

Use floor division #372

Closed j-t-1 closed 1 year ago

j-t-1 commented 1 year ago

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