Programming Tutorials

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