Computer Forums Computer Science help...2's complement, binary, addition, overflow...etc

 05-27-2007, 07:01 PM #1 Beta Member   Join Date: May 2007 Posts: 2 Computer Science help...2's complement, binary, addition, overflow...etc Hey, Im doing another worksheet and I have about 75% of it done, but these are giving me some problems! The book is not very good at explaining things and its an online class! This is just a practice worksheet though... Can anyone help me with these problems??? Convert the number 11 from base 10 to binary Convert from 2's complement to base 10 01111 and 10011Add the 2's comp together...overflow error? 11111 + 00001 = ? 01111 + 00001 = ?Convert binary to base 10 100.0101What is 1/16 in binary? I will rep anyone who helps out!!!!! Thanks alot! __________________ __________________
 05-27-2007, 10:10 PM #2 Golden Master     Join Date: Feb 2006 Posts: 8,986 Re: Computer Science help...2's complement, binary, addition, overflow...etc honestly, what is the point of learning this? __________________ __________________ Core 2 Duo e4500 2.2ghz @ 2.8ghz evga 650i ultra 2gb 400mhz ram OC'ed to 450 evga geforce 7600GT overclocked
 05-27-2007, 10:25 PM #3 Fully Optimized     Join Date: Feb 2005 Posts: 2,776 Re: Computer Science help...2's complement, binary, addition, overflow...etc 1) 11 in base 10 is just the number 11. So, in binary it would be 00001011 2) ... None of the other questions make any sense, TBH; I know the theory but don't understand the questions so can't answer them, I'm afraid. But you got one of them at least. __________________ Master of common sense. If you don't like it, stop reading.
 05-27-2007, 10:31 PM #4 Golden Master     Join Date: Feb 2006 Posts: 8,986 Re: Computer Science help...2's complement, binary, addition, overflow...etc here this is for the converting 1/16 to binary http://www.everything2.com/index.pl?node_id=1826122 __________________ Core 2 Duo e4500 2.2ghz @ 2.8ghz evga 650i ultra 2gb 400mhz ram OC'ed to 450 evga geforce 7600GT overclocked
 05-27-2007, 10:33 PM #5 Golden Master     Join Date: Feb 2006 Posts: 8,986 Re: Computer Science help...2's complement, binary, addition, overflow...etc 100.0101 in base 10 is 69 and 1/16 in binary (when converted to 6.25 decimal number) is 110 __________________ Core 2 Duo e4500 2.2ghz @ 2.8ghz evga 650i ultra 2gb 400mhz ram OC'ed to 450 evga geforce 7600GT overclocked
05-29-2007, 11:46 AM   #6
In Runtime

Join Date: Feb 2007
Posts: 133
Re: Computer Science help...2's complement, binary, addition, overflow...etc

Quote:
 Originally Posted by BC2210 Convert from 2's complement to base 10 01111 and 10011
01111 = 15
10011 - (-16+3=-13) = -13

I think that's right, I should be more confident really but I'm really tired and a bit rusty with theory.
__________________

__________________
Intel Q6600@2.4Ghz | ASUS P5N32-E SLI PLUS | 2x2GB Buffalo PC26400 Dual Channel | Dual Nvidia GeForce 6800GS @ x16 SLI | 2x250gb 7200RPM Maxtor RAID 1 | OCZ500SXS 500W PSU | NZXT Hush Case | Vista Ultimate 32bit.