tonumber

Description

Returns a number value equivalent of the source.

Syntax

number = tonumber(object)

ParameterDescription
object Object to be converted to a numeric value.

Return Value

Returns a numeric approximation of the object parameter. Objects such as tables and null will return zero since no other numeric value can be meaningfully representative.