Question:
questions about binary numbers?
venezuela_win_06
2013-07-15 05:29:42 UTC
Hey guys some questions about binary how do I calculate the decimal value of 515 in binary and what is the decimal value of this number 1101 1000 0101 1101. Could you show me the process so I can learn how to do it, thanks
Four answers:
Jacob
2013-07-15 05:53:02 UTC
I would assume you are working this by hand. If you were on a Windows PC, you could open the Calculator app, change it to programming mode, and manipulate the binary data directly to see the decimal result. To do this by hand, I will explain below.

Convert from binary to decimal:

When converting from Binary to Decimal, each place value has twice the "significance" of the preceding digit. So the far right digit would be worth 1, and the one on the left would be worth 32768. Then you just multiply that number times the binary value at that point(eg 1 or 0)An easy way to do this is to do the following:(the 1* and 0* come from the spec. binary number)

1*(2^15 )+1*(2^14)+0*(2^13)+1*(2^12)+1*(2^11)+0*(2^10)+0*(2^9)+0*(2^8)+0*(2^7)+1*(2^6)+0*(2^5)+1*(2^4)+1*(2^3)+1*(2^2)+0*(2^1)+1*(2^0) = answer(55389)



To convert Decimal to Binary:

This is probably not the most efficient way, but I look at the value and find the closest smaller value that is an exponent of 2 (eg 2^x). In the example 515, the closest lower value would be 512, which is equivalent to (2^9), which means that the ninth bit is set. So far the answer is 1000000000. We are left with 3, since 515 - 512=3. Closest lower value is 2, so the second bit is set. 1000000010. 3-2=1, so we are left with one, which means that the final bit is set. 1000000011. Edit question, and I can help you more if you need it.
AnalProgrammer
2013-07-15 12:46:27 UTC
Method 1.

Use the calculator in scientific mode. Enter the number in decimal, 515. Now click the radio button for binary.



Method 2.

divide the number by 2 and write down the result and the remainder. The result is for the next division.

The complete list of remainders forms the number from right to left.

515 / 2

257 r 1

257 / 2

128 r 1

128 / 2

64 r 0

64 / 2

32 r 0

32 / 2

16 r 0

16 / 2

8 r 0

8 / 2

4 r 0

4 / 2

2 r 0

2 / 2

1 r 0

1 / 2

0 r 1



1000000011



Binary to decimal

Method 1.

Use the calculator in scientific mode.

Make sure that the binary radio button is ticked. Now enter the binary number. Click the decimal radio button.



Method 2.

Take each bit (Binary digIT) in turn and add it to a sum and multiply the sum by 2. Do not include the last bit in this. Then just add the last bit to the sum.



Have fun.
?
2013-07-15 12:46:52 UTC
To convert base 10 to binary, divide by 2 repeatedly, recording the remainder (0 or 1) until you have only 1 left.

ex:

515 / 2 = 257 R: 1

257 / 2 = 128 R: 11

128 / 2 = 64 R: 011

64 / 2 = 32 R: 0011

32 / 2 = 16 R: 00011

16 / 2 = 8 R: 000011

8 / 2 = 4 R: 0000011

4 / 2 = 2 R: 00000011

2 / 2 = 1 R: 000000011

1 / 2 = 0 R: 1000000011

... or just use a converter.

To convert binary to decimal, treat the least significant bit as 1, the next as 2, the next as 4, the next as 8, etc., adding each of them together so 1000000011 becomes 1*512 + 0*256 + 0*128 + 0*64 + 0*32 + 0*16 + 0*8 + 0*4 + 1*2 + 1*1 = 515.
Greywolf
2013-07-15 12:42:15 UTC
1. You cannot calculate a decimal value of 515 binary, because that is not a valid binary number (binary can only have zeroes and ones)

2. a. Go Start/All Programs/ Accessories/Calculator

b. Click View/Scientific

c. Click radio button Bin

d. Copy and paste 1101 1000 0101 1101 into the box above the radio buttons

e. Click radio button Dec

Answer 55389


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...