Conversion calculators?

acidrain

Executive Member
Joined
Jan 7, 2007
Messages
6,965
Reaction score
1,762
Location
At a computer
Ok, well now ive started on the comp science part of my degree and man is that one big headache... converting from binary to hex/oct/dec :eek::eek:

I know ill have to understand the 'how to's' but is there a standard calculator to convert between binary/oct/hex/dec? Also are there ones that include substraction and addition of the above?

Thanks
 
By the time you finish your degree you'll be able to do it a all in your head.

Trust me!
 
The easiest way to remember is it that every three binary digits contract to one octal digit and every four binary digits contract to a hex digit.

So, if I make up a random binary numner

0101010010101101

to convert the octal split into groups of 3 digits

000 101 010 010 101 101

now convert each group to an octal (0-7)

0 5 2 2 5 5 , there you go, an Octal number

To convert to hex, split into groups of 4

0101 0100 1010 1101

then convert each group to hex (0-F)
5 4 A D, and you have a hex number

Decimal, throws eaverything on it's head, you're free to use a calculator for that ;-)

Once you've got the converting between binary/octal/hex down everything becomes easier after that.
 
Decimal is *almost* as simple. Just remember that the decimal values of the bits from RIGHT to LEFT are:

Bit - Dec value

1 - 1
2 - 2
3 - 4
4 - 8
5 - 16
6 - 32
7 - 64
8 - 128
9 - 256
10 - 512
11 - 1024
12 - 2048
13 - 4096
14 - 8192
15 - 16384
16 - 32768

Then all you do is add the decimal value of all the bits (from right to left):

So, in the above example: 0101 0100 1010 1101

[1+0+4+8] + [0+32+0+128] + [0+0+1024+0] + [4096+0+16384+0] makes 21677 (dec). QED :D

A calculator is definitely easier :D
 
Last edited:
calc.exe

1. press WIN + R
2. type 'calc'
3. press enter
4. select view-> scientific

Wala... i'll be here all week. dont forget to tip your waitress
 
calc.exe

1. press WIN + R
2. type 'calc'
3. press enter
4. select view-> scientific

Wala... i'll be here all week. dont forget to tip your waitress

lol, how could be be soo stoopid :(

Cool thx.

Just one question. How do you the ',' sign for fraction parts. Calc doesnt seem to want to input it when i click '.'

Eg. Need to convert (AB,C) Hex to decimal but calc will only put in (ABC) and not (AB.C)
 
By the time you finish your degree you'll be able to do it a all in your head.

Trust me!

Erm, I guess that depends on where you do your degree, we only focused on programming and such things in first year, after that it was entirely theoretical, with practicals that you do in your own way. I never use binary, hexadecimal or any non decimal format for that matter, after I was done with 2's compliment and IEEE specifications for writing decimal, I've never had the desire to use it again ;)
 
Top
Sign up to the MyBroadband newsletter
X