[Prev: killTimers()] [Home] [Next: parseInt()]

parseFloat()

parseFloat( string )

Parses the string and returns the floating point number that the string represents or NaN if the parse fails. Leading and trailing whitespace are ignored. If the string contains a number followed by non-numeric characters, the value of the number is returned and the trailing characters ignored.

See also parseInt().

[Prev: killTimers()] [Home] [Next: parseInt()]