Binary

Status
Not open for further replies.
to transform any decimal value into binary you divide it by 2 and mark the remains e.g.

8 divide by 2 = 4 remain 0
so (LSB) Least Significant Bit =0

4 divided by 2 = 2 remain 0
so you now have 00

2 divided by 2= 1 remain 0
so it's 000

1 divided by 2= 0 remain 1
so you have 1000 = 8 in binary

63= 31 1
31=15 1
15=7 1
7=3 1
3=1 1
1=0 1

To trransform any binary to decimal you start with the MSB (most significant bit) times 2 + value of next bit X2 +value etc....e.g.

MSB 1100 LSB would be 1x2+1=3 X2+0=6 X2=112+0 =12


To transform any binary into octal separate your number into groups of 3 bits starting with the LSB and transform each value into decimal. e.g.

1110 = (001) (110) or (1) (6) or 16 octal

from octal to binary replace each number by its 3 digits binary value (add zero to MSB to complete group. e.g.

72 octal would be (111) for 7 and (010) for 2 or 111010

from binary to Hexadecimal divide your number in groups of 4 and proceed the same way you did with octal
e.g. 1111=15 which is Foxtrot in Hex or F since hex goes from 0 to F (0,1,2.3.4.5.6.7.8.9.A,B,C,D,E,F)

And voilà Logical Class 101
:cool:
 
01001111011100100010000001111001011011110111010100100000011000110110111101110101011011000110010000100000011001110110111100100000011101000110111100100000011101000110100001101001011100110010000001110111011001010110001001110011011010010111010001100101001000000110000101101110011001000010000001100011011011110110111001110110011001010111001001110100001000000110000101101110011110010111010001101000011010010110111001100111001000000111100101101111011101010010000001110111011000010110111001110100001000000111010001101111001000000011101000101001
01101000011101000111010001110000001110100010111100101111011011100110100101100011011010110110001101101001011100110110101101100101001011100110001101101111011011010010111101110100011011110110111101101100011100110010111101100010011010010110111001100001011100100111100100101110011100000110100001110000
 
yeah I found that one on Google. The reason i ask is beacause i just started school for Computer Networking Systems and the instructor said on the next quiz we have to convert it i think both ways. I got binary to dec. but find it hard to go dec. to binary without using a computer!!!
 
just one thing I forgot to mention on my last post when transforming into binary. The first result is your LSB

6 to binary=

6 divided by 2=3 remain 0 LSB
3 divided by 2=1 remain 1
1 divided by 2=0 remain 1 MSB

answer is 110
 
Instead of 1's, 10's, 100's, etc. places, you have 1's, 2's, 4's, .... 2^n 's places.... modular division
 
Status
Not open for further replies.
Back
Top Bottom