Skip to content

fix max_iter calc when float is given - #222

Merged
fabianp merged 1 commit into
pythonprofilers:masterfrom
perminovs:fix-float-round
Dec 23, 2018
Merged

fabianp merged 1 commit into
pythonprofilers:masterfrom
perminovs:fix-float-round

Conversation

@perminovs

Copy link
Copy Markdown
Contributor

0.6 / 0.2 may be equal 2.9999999999999996, and then int(2.9999999999999996) -> 2.
So, float is guileful.

@fabianp

fabianp commented Dec 23, 2018

Copy link
Copy Markdown
Collaborator

thanks!

@fabianp
fabianp merged commit cedd238 into pythonprofilers:master Dec 23, 2018
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