Skip to content

Use floor division for python3 compatibility#24

Open
rev138 wants to merge 1 commit into
lmacken:developfrom
rev138:randint_floor
Open

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

Conversation

@rev138

@rev138 rev138 commented Jul 3, 2019

Copy link
Copy Markdown

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)

@ghost

ghost commented Jun 28, 2020

Copy link
Copy Markdown

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.

1 participant