Skip to content

Use floor division for python3 compatibility#24

Open
rev138 wants to merge 1 commit intolmacken:developfrom
rev138:randint_floor
Open

Use floor division for python3 compatibility#24
rev138 wants to merge 1 commit intolmacken:developfrom
rev138:randint_floor

Conversation

@rev138
Copy link

@rev138 rev138 commented Jul 3, 2019

As noted in #20, the randint() method incorrectly returns floats in python 3, due to changes in the behavior of the division operator. This PR uses "floor division" to ensure integer results (see: https://docs.python.org/3/glossary.html#term-floor-division)

@catchthemonster
Copy link

Hi, is this fixed as I am still getting in py3 floats!!

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.

2 participants