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. hello
thanks for your code. Please could an

View Tutorial          By: Bruno at 2009-05-28 15:38:46

2. Hi puru, The syntax is substring(int startIndex, i
View Tutorial          By: Fazal at 2008-09-12 20:17:53

3. good going java samples
View Tutorial          By: Rajesh at 2010-08-17 03:36:12

4. thanks. it helped a lot!
View Tutorial          By: lateforbus at 2013-04-25 03:35:24

5. all of codes of t-C++ ide, it is applicable to use
View Tutorial          By: jonard at 2009-06-05 20:41:39

6. i'm interest in j2me so i have to learn about j2me
View Tutorial          By: cha at 2013-10-14 13:17:22

7. Error loading SolarisSerial: java.lang.Unsatisfied
View Tutorial          By: amit doshi at 2009-04-06 02:00:28

8. i found this tutorial very useful... i need to kno
View Tutorial          By: Anonymous at 2009-04-14 21:09:20

9. The arraycopy in a System is static native method
View Tutorial          By: Ashwinkumar.vj at 2011-07-19 09:25:02

10. hey it is really good notes, to give an idea of
View Tutorial          By: Pawan at 2011-03-26 05:17:28