If I write this script :
alert(parseInt(\"123blahblahblah456\"));
I get the alert with the value 123
Ideally, shouldn\'t th
parseInt attempts to parse the string until it finds a non-integer value, at which point it returns whatever it had.
So if the string is:
Same with parseFloat except that won't break on a .