I was reading twitter when I came across a tweet that said..
parseInt(1/0,19); //18
Of course, in JS, anything divided by 0 is Infinity
, but what does the radix
19 mean, and why is Infinity
radix 19 parsed to 18?
Other radix, such as 16, or 10 (default) will yield "NaN"
, so what's special about the radix 19?