Quantcast
Viewing all articles
Browse latest Browse all 3527

parseInt("10", 8) The result why is not 12,but 8

According to

http://msdn.microsoft.com/en-us/library/ie/x53yedee(v=vs.94).aspx

radix                               

Optional. A value between 2 and 36 that specifies the base of the number in numString. If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. All other strings are considered decimal.

10 according to 8 radix,why the result  is 8?


My Internet Explorer is IE11.

Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>