select text and convert to number postgresql code example Example: postgres convert text to number SELECT ' 5800.79 '::INTEGER;