javascript - parseInt'ing Infinity with a radix -


this question has answer here:

i reading twitter when came across tweet said..

parseint(1/0,19); //18 

of course, in js, divided 0 infinity, radix 19 mean, , why infinity radix 19 parsed 18?

other radix, such 16, or 10 (default) yield "nan", what's special radix 19?

upper-case letters used in bases above 10, , ninth letter of alphabet. thus, it's 1 less 19.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -