Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

expressing a negative number in binary

807599Feb 13 2007 — edited Feb 13 2007
Hi,
How do I represent a negative number in binary?
I have a number say -100 which in binary is 10011100(taking twos complemnet of 100).
How do I actually do this conversion in Java?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 13 2007
Added on Feb 13 2007
10 comments
466 views