fubark / cyber

Fast and concurrent scripting.
https://cyberscript.dev
MIT License
1.21k stars 43 forks source link

Trouble converting string to int #31

Closed sts10 closed 1 year ago

sts10 commented 1 year ago

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 commented 1 year ago

This should be fixed. Thanks for reporting this.