This site is no longer active and is available for archival purposes only. Registration and login is disabled.

one's complement


one's complement

Postby Paul » Jan 15, 2003 @ 3:25pm

basically i have these two numbers in binary:

11010111 and 10001000

i did this: 11010111 - 10001000 and got: 01001111

now i need to CONVERT 10001000 to one's complement and repeat the 'subtraction' by doing one's-comp addition.

how do i do that?! i think converting 10001000 will give me 01110111 but after that i'm stumped. i also need to perform a side-check in nine's complement.

i need the answer within 2 hours of this post....
Paul
pm Insider
 
Posts: 9835
Joined: Apr 2, 2001 @ 3:15pm
Location: California


Postby Paul » Jan 15, 2003 @ 3:29pm

dammit. i just searched google again but this time i said "one's complement subtraction" instead of addition. i found this: http://courses.cs.vt.edu/~csonline/Numb ... omplement/ and its all sorted out!

now i gotta do the nine's comp check.
Paul
pm Insider
 
Posts: 9835
Joined: Apr 2, 2001 @ 3:15pm
Location: California


Postby refractor » Jan 15, 2003 @ 3:36pm

Nine's complement is the same technique but you just perform it on decimal instead of binary.
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby Paul » Jan 15, 2003 @ 3:38pm

http://mathforum.org/library/drmath/view/55949.html

tada. coursework done. now i gotta print and hand in before 4. then i have to do systematic programming cwk for friday, write my presentation for the oral exam and revise everything for exams next week.
Paul
pm Insider
 
Posts: 9835
Joined: Apr 2, 2001 @ 3:15pm
Location: California


Postby refractor » Jan 15, 2003 @ 3:41pm

My girlfriend has third-year pharmacology exams next week, too. Good luck in the exams :)
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby Paul » Jan 15, 2003 @ 4:28pm

bah, never wish someone good luck in exams. its like a jinx. besides, i shouldnt need luck, if i've revised properly but i havent, so uh... crap.

at least my tarantino box set arrived yesterday.... at my house... miles away. pfft.
Paul
pm Insider
 
Posts: 9835
Joined: Apr 2, 2001 @ 3:15pm
Location: California


Postby BurningSheep » Jan 15, 2003 @ 7:12pm

Ah everyone making exams... except for the lucky bastards who had an exam period just before their vacation instead of immediately after :\

I have an exam on the theory of computation this friday. Number representations is a part of it aswell, albeit a very small part since every representation with a base higher than 1 is considered in the same class (because there's a constant factor between a number in one base and any other, bla bla bla). I'm so gonna fail it =[ hmm, what am i doing here... better go back to studying!
Do you want custom Snails levels? Click
User avatar
BurningSheep
pm Insider
 
Posts: 1226
Joined: Apr 12, 2002 @ 11:49pm
Location: The Netherlands


Return to Anything Discussion


Sort


Forum Description

Post all off-topic messages here, almost anything goes.

Moderators:

Dan East, sponge, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron