- Description: Converts a string to a number.
- Purpose: Parsing string representations of numbers.
- Syntax:
TO_NUMBER(string, [format])
- Parameters:
string
: String to convert.format
: Optional format for number interpretation.
- Returns: A numeric value.
- Example:
TO_NUMBER('123.45')
returns123.45
. - Notes: Can include currency symbols and commas if format is provided.
- Use Case: Performing calculations on user inputted data.
Leave a Reply