Skip to content

Fix code to pass string literal to float() instead of int()#29

Merged
mikeckennedy merged 1 commit into
talkpython:masterfrom
amcinnes87:patch-1
Dec 7, 2020
Merged

Fix code to pass string literal to float() instead of int()#29
mikeckennedy merged 1 commit into
talkpython:masterfrom
amcinnes87:patch-1

Conversation

@amcinnes87

Copy link
Copy Markdown
Contributor

Triggers an exception when you call int("7.2").

Triggers an exception when you call `int("7.2")`.
@mikeckennedy

Copy link
Copy Markdown
Member

Thanks for catching this and the PR. :)

@mikeckennedy mikeckennedy merged commit f06d085 into talkpython:master Dec 7, 2020
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