Meaningless Drivel is fun!*
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


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>
 
GeeCON Prague 2014
 
subject: HELP - Negative in Octal And HexaDecimal