Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

# Base 10 conversion (Java) I need help!

3 replies to this topic

### #1 eslfish

eslfish

• Members
• 77 posts
• OFFLINE
•
• Gender:Male
• Location:Farmington Hills, Michigan
• Local time:05:39 AM

Posted 30 January 2011 - 03:48 PM

What is the value of the binary number 01000001 in base 10?

The answer is 65. But I need help on how it is 65... I am really lost, I am terrible at math. Can anyone explain this easy for me?

All help appreciated.
Intel® Core™ i7 CPU 950 @ 3.07GHz (8 CPUs), ~3.1GHz
6144MB RAM 500 GB HD ATI Radeon HD 5800 Series
Windows 7 64-bit Ultimate

### #2 groovicus

groovicus

• Security Colleague
• 9,963 posts
• OFFLINE
•
• Gender:Male
• Location:Centerville, SD
• Local time:04:39 AM

Posted 30 January 2011 - 04:41 PM

```
0      1      0      0      0      0     0      1
*2^7   *2^6   *2^5   *2^4   *2^3   *2^2  *2^1   *2^0
= 0    = 64   = 0    = 0    = 0    = 0    = 0    = 1

62 + 1 = 64

```

The right most position is 1 * 2^0; for each position left, you increment the power and multiply by a 1 or 0, depending on whatever digit is in that position.

Edited by groovicus, 30 January 2011 - 04:59 PM.

### #3 JosiahK

JosiahK

• Members
• 269 posts
• OFFLINE
•
• Gender:Male
• Local time:11:39 AM

Posted 30 January 2011 - 04:50 PM

Multiply it by 2, put that to the left: 2 1
Multiply that next value by 2: 4 2 1
And so on until you have 8 numbers.
128 64 32 16 8 4 2 1

These are the values that are implied by a 1 in a given location in binary.

Then you simply add up the values.

01000001

is 0*128 + 1*64 + 0*32 + 0*16 + 0*8 + 0*4 +0*2 + 1*1
64 + 1 = 65

11111111

is 255, 128 + 64 + 32 + 16 + 8 + 4 + 2 +1

00000000

is just 0

It takes getting used to. The best way in my opinion (and that of my mathematics teacher) is to just get some numbers and practice. For example what are the following in binary

1
2
5
10
25

and the following in decimal.

10101010
01010101
00100100
00000111

Edited by JosiahK, 30 January 2011 - 04:54 PM.

Quod non mortiferum, fortiorem me facit.

### #4 eslfish

eslfish
• Topic Starter

• Members
• 77 posts
• OFFLINE
•
• Gender:Male
• Location:Farmington Hills, Michigan
• Local time:05:39 AM

Posted 30 January 2011 - 05:12 PM

Thanks to both of you. I understand this a lot clearer!
Intel® Core™ i7 CPU 950 @ 3.07GHz (8 CPUs), ~3.1GHz
6144MB RAM 500 GB HD ATI Radeon HD 5800 Series
Windows 7 64-bit Ultimate

#### 0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users