parseFloat accepts a string as an argument which it converts to a float/
parseFloat
parseFloat("10.01") // = 10.01