Search:

Type: Posts; User: helloworld922

Search: Search took 0.08 seconds.

  1. Replies
    12
    Views
    8,483

    Re: numerical conversion methods..

    You could also have used parseInt("12345670",8) for octal numbers.
  2. Replies
    12
    Views
    8,483

    Re: numerical conversion methods..

    You'll have some trouble converting the second number to an integer... it's longer than 4 bytes :P

    Binary String to Decimal int:


    public static int binaryToDecimal(String num)
    {
    int sum...
  3. Replies
    12
    Views
    8,483

    Re: numerical conversion methods..

    Technically, it only matters on displaying them, or in the actual code, since when the program is running, everything is in binary. To enter a hex number add the 0x to the front of the number....
Results 1 to 3 of 3