Returns a number value equivalent of the source.
number = tonumber(object)
Parameter Description object Object to be converted to a numeric 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.