Possible Duplicate:
Why does parseInt(1/0, 19) return 18?
I was parsing an integer from the result of an expression in javascript.
The expression was (a/b,24)
, and it is in a method, so I do not have a check on division by zero.
and I am parsing the integer as parseInt(a/b,24)
But I found an unusual thing in it when a=1, b=0 the result was 151176378.
Please explain the reason for this discrepancies.
Appreciate any suggestion.