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

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -