TO_NUMBER
Converts text written the “human” way — with commas or a currency sign — into a number.
Syntax
TO_NUMBER(<text>, '<format>')
The format describes what goes where: 9 is a digit, , or G is the thousands separator, . or D is the decimal point, and other characters, such as $, are skipped. If the text is just a number like '42.5', you don't need TO_NUMBER: CAST or ::numeric is enough.