Parse Functions
This section contains notes on parseInt() and parseFloat().
parseInt()
The parseInt(string [, radix]) function parses a string and returns an integer.
The radix parameter specifies which numeral system is to be used, for example, a radix of 16 (hexadecimal) indicates that the number in the string should be parsed from a hexadecimal number to a decimal number.
If the radix parameter is omitted, JavaScript assumes the following:
parseFloat()
The parseFloat() function parses a string and returns a floating point decimal number.
This function determines if the first character in the specified string is a number. If it is, it parses the string until it reaches the end of the number, and returns the number as a number, not as a string.
Copyright © Cloud Software Group, Inc. All rights reserved.