Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble converting string to int #31

Closed
sts10 opened this issue Jan 29, 2023 · 1 comment
Closed

Trouble converting string to int #31

sts10 opened this issue Jan 29, 2023 · 1 comment

Comments

@sts10
Copy link
Contributor

sts10 commented Jan 29, 2023

Having some trouble converting strings that are numbers into integers or numbers.

In the playground:

a_number = int("110")
print 'a number is {a_number}' 

prints a number is 0

I also tried number():

a_number = number("110")
print 'a number is {a_number}'

prints a number is 1

Am I doing something wrong?

@fubark
Copy link
Owner

fubark commented Jan 30, 2023

This should be fixed. Thanks for reporting this.

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

No branches or pull requests

2 participants