Comment on Tutorial - Using parseInt() and parseFloat() in JavaScript to convert data types to Numbers By Nicholas C. Zakas



Comment Added by : Doug Whitehead

Comment Added at : 2008-12-01 21:27:55

Comment on Tutorial : Using parseInt() and parseFloat() in JavaScript to convert data types to Numbers By Nicholas C. Zakas
int iNum2 = parseInt(“0xA”); //returns 10

Why do I get a "Numeric Format Exception on your example above?
int gs = Integer.parseInt("0xA");
Without the "Integer." I get a IDE Editor error.

Doug Whitehead


View Tutorial



Related Tutorials

Java program to get location meta data from an image

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Archived Comments

1. It is clear and understandable for beginners.

View Tutorial          By: Archana at 2011-12-14 12:31:21

2. simple and clear , thanks a lot!
View Tutorial          By: Steiner at 2012-01-29 19:44:57

3. Hi Shreya, in Linux, the COM ports are identified
View Tutorial          By: Ramlak at 2008-06-23 03:34:11

4. Can u send total code, i am in critical position n
View Tutorial          By: ram at 2011-05-16 07:07:10

5. The example is wrong, because there are two sepera
View Tutorial          By: billGates at 2010-07-06 16:56:13

6. Nice n simple ex!!!!!!!!!!!!!!!!!!!
View Tutorial          By: Siya at 2010-11-17 07:08:34

7. This code worked but it only add the same vales se
View Tutorial          By: Dammy Temmy at 2013-01-17 17:22:17

8. left shift output is wrong, for this results so ma
View Tutorial          By: naga sudha at 2011-04-20 04:26:40

9. thanks you're such an angel :) thanks for solving
View Tutorial          By: Tanzeela Ali at 2013-04-01 07:42:08

10. Thank you for the tutorial. I want to create a cat
View Tutorial          By: Lue at 2012-07-09 10:40:08