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



Subscribe to Tutorials

Related Tutorials

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

Java program using Method Overriding

Archived Comments

1. copy of h.sheld
View Tutorial          By: vivek at 2011-08-31 13:12:36

2. Thank you lot [email protected]
This example help me.

View Tutorial          By: Tushar at 2012-02-12 02:48:10

3. Question: if clone is a protected method then why
View Tutorial          By: siva kiran at 2011-01-20 11:40:23

4. Can you give me an example to create InetAddress f
View Tutorial          By: Vaibhav at 2009-12-15 23:37:49

5. It's helpful to me.. to understand stand clear pic
View Tutorial          By: Ansari at 2010-08-18 10:22:54

6. i am MCA student and i have completed bca, so can
View Tutorial          By: shilam kumari at 2014-01-12 11:08:05

7. precisely the drawbacks I am trying to address in
View Tutorial          By: ernest at 2011-02-05 02:16:13

8. The site is too informative. I just like their imm
View Tutorial          By: Priyadarshi Tripathi at 2010-10-26 23:44:46

9. Hi..
i a'm Sajid mestri (Maha,sangli)

View Tutorial          By: sajid at 2010-10-30 00:32:15

10. Really Good........!
View Tutorial          By: Anonymous at 2009-04-01 22:33:19