The parseFloat() Method

Number.parseFloat() converts strings to numbers: