xxxxxxxxxx
local str = "3.14" -- Example string value
local num = tonumber(str)
if num then
print(num) -- Converted float value
else
print("Invalid number format")
end
xxxxxxxxxx
local this_int = 63 --this is a int
-- if you see it has a difference. you will notice anytime soon if you're a begginer
local this_float = 3.92837462728365728 --this is a float