This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes HELP - Negative in Octal And HexaDecimal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "HELP - Negative in Octal And HexaDecimal" Watch "HELP - Negative in Octal And HexaDecimal" New topic
Author

HELP - Negative in Octal And HexaDecimal

Saurabh Sahay
Greenhorn

Joined: Apr 23, 2004
Posts: 5
Hi
Can anyone please mention the basics of how to represent negative numbers in Octal and Hexadecimal Format.
regards
Tom Blough
Ranch Hand

Joined: Jul 31, 2003
Posts: 263
Octal and Hex are just shorthand representations of binary numbers. Research "twos complement" for representing binary numbers.


Tom Blough<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>Cum catapultae proscriptae erunt tum soli proscripti catapultas habebunt.<hr></blockquote>
 
 
subject: HELP - Negative in Octal And HexaDecimal