Wakeboarder Forum Index

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   StatisticsStats   FavoritesFavorites   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages  Log inLog in 
BlogsBlogs   

Hexadecimal Sign and Magnitude

 
Post new topic   Reply to topic    Wakeboarder Forum Index -> Technology, Photography, and Media
View previous topic :: View next topic  
Author Message
Mikeob1
Outlaw
Outlaw


Joined: 01 Jan 2005
Posts: 160
City: Chicago/Milwaukee

PostPosted: Feb 15, 2009 10:18 am    Post subject: Hexadecimal Sign and Magnitude Reply with quote

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
View user's profile Send private message
joedirt00
Wakeboarder.com Freak
Wakeboarder.com Freak


Joined: 15 Jul 2004
Posts: 2892
City: Baker City

PostPosted: Feb 15, 2009 11:18 am    Post subject: Reply with quote

WTF are you talking about? Confused
_________________
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
View user's profile Send private message
Mikeob1
Outlaw
Outlaw


Joined: 01 Jan 2005
Posts: 160
City: Chicago/Milwaukee

PostPosted: Feb 15, 2009 11:40 am    Post subject: Reply with quote

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
View user's profile Send private message
ontrider
Ladies Man
Ladies Man


Joined: 30 Jul 2003
Posts: 16491
City: Russia

PostPosted: Feb 15, 2009 12:01 pm    Post subject: Reply with quote

What is the question? How to convert hex to negative numbers?
Back to top
View user's profile Send private message Blog
Mikeob1
Outlaw
Outlaw


Joined: 01 Jan 2005
Posts: 160
City: Chicago/Milwaukee

PostPosted: Feb 15, 2009 12:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rhawn
Wakeboarder.com Freak
Wakeboarder.com Freak


Joined: 14 Jun 2006
Posts: 3127
City: Richmond, V to the Izzay

PostPosted: Feb 15, 2009 12:59 pm    Post subject: Reply with quote

You can do the conversion to binary, do your math then convert back.
_________________
WakeSurf and Wakesurfing News
Back to top
View user's profile Send private message Visit poster's website
Mikeob1
Outlaw
Outlaw


Joined: 01 Jan 2005
Posts: 160
City: Chicago/Milwaukee

PostPosted: Feb 15, 2009 9:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Wakeboarder Forum Index -> Technology, Photography, and Media All times are GMT - 8 Hours
Page 1 of 1

Add To Favorites

Jump to:  
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