(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

Covert the following numbers to 12-bit binary numbers using two's complement representation.

234

-234

2. Relevant equations

None I know of.

3. The attempt at a solution

I think I'm making this more complicated than it really is. For 234 I can just convert right to binary or do I have to convert 234 to binary, complement, add 1, complement, and then add 1?

For -234:

000011101010

111100010101

1(adding 1 to LSB)

111100010110

On a side note converting a negative number to octal or hex say -234. You convert it like any other binary number? When converting back how do you know you have a negative number or positive number? By the MSB?

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: 2's complement

**Physics Forums | Science Articles, Homework Help, Discussion**