-- Chapter 13 example: turning a string into a number.

local text = "42"
local n = tonumber(text)
print(n + 1)               -- 43

print(tonumber("3.14"))    -- 3.14
print(tonumber("hello"))   -- nil
