tonumber lua code example
Example 1: lua string to number
local str = '10.7'
local num = tonumber(str)
Example 2: lua data types
nil, boolean, number, string, function, userdata, thread, and table
Example 3: lua variable types
-- Nil (no value)
-- Number => Example: 1234567890
-- String => Example: "random text"
-- Function
-- Userdata
-- Boolean (true/fanse)
-- Table
-- Thread