Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Converting chars;

Posted on 2002-03-20
Medium Priority
187 Views
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
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

LVL 16

Accepted Solution

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

ID: 6883315
Thanks, that worked like magic.
0

## Featured Post

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
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…
Simple Linear Regression
###### Suggested Courses
Course of the Month4 days, 23 hours left to enroll