|
|
|
| View previous topic :: View next topic |
| Author |
Message |
Mikeob1 Outlaw

Joined: 01 Jan 2005 Posts: 160 City: Chicago/Milwaukee
|
Posted: Feb 15, 2009 10:18 am Post subject: Hexadecimal Sign and Magnitude |
|
|
Hopefully someone on here knows the answer.
For one of my classes I have to do some problems involving hexadecimal numbers represented in sign and magnitude format. I'm familiar with using sign and magnitude representation for binary numbers where typically the left bit is designated as the sign bit and is either 0 for positive or 1 for negative. How is sign and magnitude implemented for hexadecimal numbers?
I've been looking on google and have yet to find an answer. |
|
| Back to top |
|
 |
|
|
joedirt00 Wakeboarder.com Freak

Joined: 15 Jul 2004 Posts: 2892 City: Baker City
|
Posted: Feb 15, 2009 11:18 am Post subject: |
|
|
WTF are you talking about?  _________________
| haugy wrote: | My advice:
-If you grab a girls hair, and it comes off in your hand, don't laugh, that could have been the best sex ever. |
|
|
| Back to top |
|
 |
Mikeob1 Outlaw

Joined: 01 Jan 2005 Posts: 160 City: Chicago/Milwaukee
|
Posted: Feb 15, 2009 11:40 am Post subject: |
|
|
Binary notation is used in computers. Instead of digits 0-9 like we are used to, it uses only 0 and 1. Instead of using + and - for positive and negative numbers it uses one place (think back to elementary school tens, hundreds, or thousands place) to be the positive or negative symbol. So if the first digit is 0 the number is positive and if the first digit is 1 the number is negative. That is how binary numbers are represented to be positive or negative using sign and magnitude notation (first number is the sign and the rest are the magnitude, or value). My question is asking how this is done using hexadecimal numbers where instead of 0-9 or 0,1 the base numbers are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. Values 0 through 15.
</nerd talk> |
|
| Back to top |
|
 |
ontrider Ladies Man


Joined: 30 Jul 2003 Posts: 16491 City: Russia
|
Posted: Feb 15, 2009 12:01 pm Post subject: |
|
|
| What is the question? How to convert hex to negative numbers? |
|
| Back to top |
|
 |
Mikeob1 Outlaw

Joined: 01 Jan 2005 Posts: 160 City: Chicago/Milwaukee
|
Posted: Feb 15, 2009 12:17 pm Post subject: |
|
|
| Yes. More specifically how to covert a sign and magnitude hexadecimal number to base 10, and how to add/subtract sign and magnitude hexadecimal numbers. |
|
| Back to top |
|
 |
Rhawn Wakeboarder.com Freak


Joined: 14 Jun 2006 Posts: 3127 City: Richmond, V to the Izzay
|
Posted: Feb 15, 2009 12:59 pm Post subject: |
|
|
You can do the conversion to binary, do your math then convert back. _________________ WakeSurf and Wakesurfing News |
|
| Back to top |
|
 |
Mikeob1 Outlaw

Joined: 01 Jan 2005 Posts: 160 City: Chicago/Milwaukee
|
Posted: Feb 15, 2009 9:44 pm Post subject: |
|
|
| Rhawn, that is what I finally ended up doing. I don't think they wanted us to assume the hex numbers were in sign and magnitude, just that the binary numbers, once converted, were in sign and magnitude. |
|
| Back to top |
|
 |
|
|
|
Add To Favorites
|
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 vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
Copyright © 2012 - Wakeboarding - Wakeboarder.com - All Right Reserved
Powered by phpBB © 2001, 2005 phpBB Group
|
|
|