Solved

Converting chars;

Posted on 2002-03-20
2
185 Views
Last Modified: 2010-04-17
Hey, this my seem funny, but it seem I found a problem I can't deal with myself. It is : What is the two's complement value of the sixteen bit number 0x34D2?

I would be grateful for any advice.
Thanks.
0
Comment
Question by:DigitalSunset
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
imladris earned 75 total points
ID: 6882877
0xcb2e

The 2's complement of a hex number is its 1's complement (i.e. all bits flipped) + 1. The ones complement of 0x34d2 is 0xcb2d, so the 2's complement is 0xcb2e.
0
 

Author Comment

by:DigitalSunset
ID: 6883315
Thanks, that worked like magic.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question