One's Compliment Dec to Hex Conversion

Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

One's Compliment Dec to Hex Conversion

 
0
  #1
May 10th, 2007
I have been asked to explicitly convert a decimal number to hexadecimal (radix sixteen) number in 1s complement...how the heck is that done?

I can convert to a binary number using 1s compliment...do I just take that and convert to hex after the fact?
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 134
Reputation: mathematician is an unknown quantity at this point 
Solved Threads: 3
mathematician mathematician is offline Offline
Junior Poster

Re: One's Compliment Dec to Hex Conversion

 
0
  #2
May 10th, 2007
Not sure I understand the question. Within the computer everything is obviously stored in binary, and it only becomes decimal or hexadecimal when it is output.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: One's Compliment Dec to Hex Conversion

 
0
  #3
May 10th, 2007
Originally Posted by mathematician View Post
Not sure I understand the question. Within the computer everything is obviously stored in binary, and it only becomes decimal or hexadecimal when it is output.
Now you see my problem...LOL
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Assembly Forum


Views: 4956 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Assembly
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC