Method: Character to numeric decimal with default
Function name: todecimal
Parameter list: (CHAR str, DECIMAL default)
Return type: DECIMAL
What the method does: Converts a character to a numeric decimal.
Note: You can code a default value if the character to numeric conversion fails.