Javascript,parseFloat,parseFloat Syntax keyword@metatags

In javascript you can convert a number present in a string into a float value using parseFloat function.

Syntax:

parseFloat(string)

Example:

The following code copies a float value present in a string into number variable.
var v="100.98";
var num=parseFloat(v);
alert(num);