Home | Javascript validator | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.
Microsoft® JScript®
parseFloat Method
 Language Reference 
Version 1 

See Also                  Applies To


Description
Returns a floating-point number converted from a string.
Syntax
parseFloat(numstring)

The numstring argument is a string that contains a floating-point number.

Remarks
The parseFloat method returns an numerical value equal to the number contained in numstring. If no prefix of numstring can be successfully parsed into a floating-point number, NaN (not a number) is returned.
parseFloat("abc")    // Returns NaN.
parseFloat("1.2abc") // Returns 1.2.
You can test for NaN using the isNaN method.

Home | Javascript validator | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.