The tonumber function converts a string_expression into a number. Leading blanks in the string are ignored. The conversion stops at the first non-numeric character encountered.
Special processing for boolean values converts "true" to 1 and "false" to 0.
Return Value
The function returns a decimal number. If the string begins with a non-numeric character (other than a blank), the function returns default.