I ask for help in the translation code from the 32nd system to the 10th.
Those examples that were used for the 16th did not help.

Closed due to the fact that the essence of the question is incomprehensible by the participants Alexey Shimansky , AK , aleksandr barakin , Kromster , cheops 11 Jan '17 at 5:28 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    It is possible so:

    Integer.parseInt(number + "", radix) 

    Where:

    • radix number system
    • number number to convert

    Example:

     Integer.parseInt("1111", 2) 

    The output will be:

    15

    • I don’t know Dzhava, but the fortune teller has guessed it - I'll get acquainted)) Simple question: does java have something like .parseFloat() for different number systems? Well, so ... plus of course. - Majestio
    • for floating point numbers not - Artem Konovalov
    • Clear Well, in principle, this is quite a rare case when necessary. - Majestio
    • It means that I have a string in the 32nd number system, which is the 15th number in decimal. Radix can be 10, 2, 8 or 16, respectively. There are no standard methods for translating from 32 s / s? - NineStems
    • @NineStems read javadoc to this method. <li> The radix is ​​either smaller than * {@link java.lang.Character # MIN_RADIX} or * larger than {@link java.lang.Character # MAX_RADIX}. MIN_RADIX = 2 and MAX_RADIX = 36 - Artem Konovalov