What is the radix parameter in Java, and how does it work?

后端 未结 6 1056
日久生厌
日久生厌 2020-11-29 05:36

I understand that radix for the function Integer.parseInt() is the base to convert the string into. Shouldn\'t 11 base 10 converted with a radix/base 16 be a

6条回答
  •  醉话见心
    2020-11-29 05:49

    The function act backwards as you think. You convert "11" in base 16 to base 10, so the result is 17.

提交回复
热议问题