Solved

Converting chars;

Posted on 2002-03-20
2
166 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
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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to remove numeric and alpha from an alphanumeric field? 5 86
iSeries email authority 6 57
Help Required 2 33
some keys in my laptop is not working. any suggestion 6 32
This is about my first experience with programming Arduino.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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…

803 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