I need to convert a number in string into an integer but i don’t know how to do it. Plz help
local str = "123"
local num = tonumber(str)
print(num) --123
print(type(num)) --number
7 Likes
thank you!
1 Like