JavaScript Built In Function ParseFloat()
View Source...
Returns floating point numbers the same as the parseInt function, but looks for floating point qualified strings and returns their value as a float. If a vale passed to it is an integer, it returns the integer.