PDA

View Full Version : parseInt returns 0 instead of NaN


wac
02-11-2009, 09:30 PM
Not sure if this should be posted to the flex or flash forum.
I'm using parseInt to parse a string and when the string is not numeric,
I get 0 instead of NaN, so my isNaN() call always fails on the return.
Any ideas?

gnomeontherun
02-20-2009, 12:04 PM
Got code?

nikos101
02-21-2009, 12:17 AM
just use regex on your data.