Is there a way to convert a string that's a number into an integer?

Say I have a string "1", but I want to convert it to a usable integer 1.

Is there a way to do it?

7 Likes

Simple google search would suffice, but yes there exists that function.

tonumber("10")

exists I believe.

Source:

13 Likes

Thanks, I just realized I scrolled right past it on the wiki.

3 Likes