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. Wow
View Tutorial          By: Ajmalnafi at 2012-06-30 01:48:04

2. how do i cast the contents of the arraylist to dou
View Tutorial          By: ronnie at 2010-01-27 00:04:25

3. Thanks
View Tutorial          By: Bad Programmer at 2011-11-23 10:43:49

4. hi,good afternoon i have one problem with spinner
View Tutorial          By: veera reddy at 2012-01-13 06:55:24

5. The concept is clear.
View Tutorial          By: sam at 2012-08-23 03:52:15

6. I am getting error in setContentView(R.layout.main
View Tutorial          By: Malick at 2013-06-30 06:57:30

7. pls give me example of stack class with postfix me
View Tutorial          By: uchiha at 2011-09-16 04:02:57

8. Wow Such a good tutorial. It really really make me
View Tutorial          By: Anonymous at 2010-02-19 05:53:11

9. it doesn't count for the values like 001 or 02 et
View Tutorial          By: angesh at 2012-02-10 16:15:02

10. i want some more info to make my final project.
View Tutorial          By: Arshid saeed at 2010-02-18 08:18:45