Skip to content

tonumber

tonumber(value, base)

Tries to convert value to a number. If the argument is invalid, it returns nil.