Developing Business Applications for the Web: With HTML, CSS, JSP, PHP, ASP.NET, and JavaScript by Christian Hur & Laura Ubelhor

Developing Business Applications for the Web: With HTML, CSS, JSP, PHP, ASP.NET, and JavaScript by Christian Hur & Laura Ubelhor

Author:Christian Hur & Laura Ubelhor [Hur, Christian]
Language: eng
Format: azw3, epub
Publisher: MC Press
Published: 2017-04-21T04:00:00+00:00


parseInt(str [, radix])

These functions return a numeric value when given a string as an argument.

The parseInt function parses its first argument, the string str, and attempts to return an integer of the specified radix (base), indicated by the second, optional argument, radix. For example, a radix of 10 means to convert to a decimal number, eight means octal, 16 hexadecimal, and so on. For radixes above 10, the letters of the alphabet indicate numerals. For example, for hexadecimal numbers (base 16), A through F are used.

If parseInt encounters a character that is not a numeral in the specified radix, it ignores it and all succeeding characters and returns the integer value parsed up to that point. If the first character cannot be converted to a number in the specified radix, it returns “NaN.” The parseInt function truncates the string to integer values.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.