Example 1: lua string to number local str = '10.7' local num = tonumber(str) Example 2: tointeger lua local a = "5" local numbera = tonumber(a) --is now an ...
確定! 回上一頁