What are the rules for parseFloat() function?

The parseFloat() function looks at each character starting in position 0. It continues to convert until it reaches either the end of the string or an invalid character. A decimal point is valid the first time not the second time.




The code above generates the following result.