erocarrera / pefile

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

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

Closed j-t-1 closed 1 year ago

j-t-1 commented 1 year ago

…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.