GetDotted Domains

Viewing Thread:
"Converting Decimal to Binary?"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Mon 07/11/05 at 21:47
Regular
Posts: 31
I need to convert the following Decimal values to Binary.

1010
3510
10710

I have had ago at the first two but i think they may be wrong, could you have a look and if they are wrong maybe help me out?

Thanks

[URL]http://img130.imageshack.us/my.php?image=decimaltobinary9mw.png[/URL]
Tue 08/11/05 at 16:44
Regular
"tinycurve.gif"
Posts: 5,857
Ah right. Yeah I thought the numbers were a bit huge ther Chainsaw. I thought you meant 10 to the power of 10, 35 to the power of 10 etc.
Mon 07/11/05 at 23:53
Regular
"hulagadoo"
Posts: 1,688
Mr.Chainsaw wrote:
> I need to convert the following Decimal values to Binary.
>
> 1010
> 3510
> 10710
>
> I have had ago at the first two but i think they may be wrong, could
> you have a look and if they are wrong maybe help me out?
>
> Thanks
>
> [URL]http://img130.imageshack.us/my.php?image=decimaltobinary9mw.png[/URL]


Doing this at college right now.

way we've been taught is to keep dividing by two until you are left with zero. Example:

10/2 = 5 r 0
5/2 = 2 r 1
2/2 = 1 r 0
1/2 = 0 r 1

You then read the remainders from the bottom to leave u with 1010 and thats your answer.

This applies to all decimal to binary conversion. Once you have the answer you can check it by using the table:

128 64 32 16 8 4 2 1

Then just fill in your answer and do the addition to check.

Hope that makes sense.

At college we use this site [URL]http://scholar.hw.ac.uk/site/computing/topic8.asp?outline=[/URL] Its got everything you need to know about binary to decimal conversions, hex to decimal ect.
Mon 07/11/05 at 23:45
Regular
"Picking a winner!"
Posts: 8,502
Mr.Chainsaw wrote:
> I need to convert the following Decimal values to Binary.
>
> 1010
> 3510
> 10710

Its pretty straight forward when you get used to it. The numbers you have at the moment are base 10 - decimal numbers (The standard way most of us are taught to count. 1 2 3 4 5 6 7 8 9 10.

Binary is base 2 so it can be either a 0 or 1.

To convert the numbers you convert them to base 2.
So for an 8 bit number you can have 8^2 possible numbers 2*2*2*2*2*2*2*2
= 256

So as long as the number is between 0 & 256 you can represent it using 8 bits.

So to convert 10 to 8 bits you write out the numbers similar to those you use in your example

128 64 32 16 8 4 2 1

then work out what numbers you need to use to make 10 = 8 & 2
which gives the 8 bit number 0 0 0 0 1 0 1 0

Use the same idea for the others

0 0 1 0 0 0 1 1
0 1 1 0 1 0 1 1

Gets harder when you start to use binary arithmetic and 2's complement etc. Hope it helps.
Mon 07/11/05 at 23:19
Posts: 15,443
gamesfreak wrote:
> You sure those are the real questions?
>
> 107^10 = 196715135728956532249
>
> That's going to take a while to convert to binary...

It was meant to be in subscript rather than super.
Mon 07/11/05 at 23:14
"High polygon count"
Posts: 15,624
If you're using Windows, just run Calculator.

Go to the View menu, select Scientific, and you can switch between Decimal, Binary, Octal and Hex at will.
Mon 07/11/05 at 22:50
Regular
Posts: 10,364
You sure those are the real questions?

107^10 = 196715135728956532249

That's going to take a while to convert to binary...
Mon 07/11/05 at 22:36
Regular
Posts: 31
Twain wrote:
> Edit: Scratch that. i just saw your earlier comment about showing your
> working. I'll edit this post again as soon as I find my notes on it.

Thanks, will be much appreciated.
Mon 07/11/05 at 22:20
Regular
"tinycurve.gif"
Posts: 5,857
Ok, here's what you do:

1. Work out the answers to those sums in decimal.
2. I will use the answer to the first one as an example, and you can do the rest. Here's how you convert it to binary:

Take the number which is the answer to the sum and write it down: 10000000000

Now what you do is find the largest result of 2n which is still smaller than that number. eg. 22 = 4, 23 = 8. In this case it is 8589934592.

Write that number down next to every number which is a 2n in a line to the right of it.

Now you look at the number 8589934592 and think "Does it go into 10000000000?" The answer is yes, so you write a 1 underneath it. You then see if the next 2n goes into the remainder, and so on. If it doesn't, then you put a 0 above it instead of a 1. Repeat until you get the answer.

I found this pretty hard to explain, but I decided I couldn't be bothered to find my notes.

Hope you understood all that.
Mon 07/11/05 at 22:11
Posts: 15,443
I could... but that would involve effort. Why don't you tell us how you arrived at those answers, that'll help your understanding. And require less effort on my part.
Mon 07/11/05 at 21:53
Regular
Posts: 31
That's great!

But i need to show my working out and actually explain how i did it!

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Thanks!
Thank you for dealing with this so promptly it's nice having a service provider that offers a good service, rare to find nowadays.
Simple, yet effective...
This is perfect, so simple yet effective, couldnt believe that I could build a web site, have alrealdy recommended you to friends. Brilliant.
Con

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.