A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/parseFloat below:

parseFloat ยท WebPlatform Docs

parseFloat Summary

Converts a string to a floating-point number.

Syntax
parseFloat( numString )
Examples
parseFloat("123.45")  
parseFloat("abc")  
parseFloat("1.2abc")  
Remarks

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

The parseFloat function returns a 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.

You can test for NaN using the isNaN function.

See also Other articles Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4