Please some1 help me

G

Guest

Guest
Hi all, as i said before i'm doing a pc repair and maintenance and i could do with a little help.
I realize i'm gonna get the piss ripped out off me for posting this but i really do need help, i flunked maths at school.

ok here's the questions

Convert the following to 8-bit binary
16
64
127

Convert the following to decimal
00000011
10101010
01010011

Thanx in advance
 

AeroSnoop

Distinguished
Dec 31, 2007
121
0
18,680
16 in decimal = 00010000 in binary
64 in decimal = 01000000 in binary
127 in decimal = 01111111 in binary

00000011 in binary = 3 in decimal
10101010 in binary = 170 in decimal
01010011 in binary = 83 in decimal

Use the scientific mode of calculator to do the decimal/binary conversions if you can.

Heres how to do it on paper:

A single byte = 8 bits
Each bit has a binary value assigned to it:

Bit 1 2 3 4 5 6 7 8
Equal to 128 64 32 16 8 4 2 1


So if you have the binary number 00001111, take the last 4 bits and add their values together. So that would be:
00001111 = 1+2+4+8 = 15 in decimal.


<P ID="edit"><FONT SIZE=-1><EM>Edited by AeroSnoop on 05/07/01 05:59 PM.</EM></FONT></P>
 
G

Guest

Guest
Hey man thanx alot, that was real quick to!
You are clearly some sort of god!
Thanx
 

stonerboy

Distinguished
Dec 31, 2007
214
0
18,680
"You are clearly some sort of god!"

lol, if takes the intelligence of a "god" to convert binary to decimal and decimal to binary.