The parseFloat(...) function has two variations, not counting syntax variations. It is used to convert a String to a Float with an optional custom format string.
Syntax:
parseFloat( number-string )
parseFloat( number-string, format-string )
number-string.parseFloat()
number-string.parseFloat( format-string )
Parameter |
Description |
number-string |
The String value to be converted to a Integer value |
format-string |
The format string is used to interpret the number-string. If omitted, the function expects a String value containing a number and no additional formatting. If the number-string value is null, empty or does not match the format string, the result will be null. For a description of possible format-string values refer to the Java API documentation for DecimalFormat. |