4

I have a string that contains a number in the octal system. Now I'd like to convert this String to an integer. I found text.parse() which converts the string into an integer with radix 10. How do I convert the String to a number given a radix? (Ideally a solution that works for hexadecimal/decimal/binary/octal, and not only for octal)

1

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.