wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "HELP - Negative in Octal And HexaDecimal" Watch "HELP - Negative in Octal And HexaDecimal" New topic

HELP - Negative in Octal And HexaDecimal

Saurabh Sahay

Joined: Apr 23, 2004
Posts: 5
Can anyone please mention the basics of how to represent negative numbers in Octal and Hexadecimal Format.
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>
It is sorta covered in the JavaRanch Style Guide.
subject: HELP - Negative in Octal And HexaDecimal
Similar Threads
negative hexadecimal and octal
basic question about binary, oct and Hex
Negative octal or hexadecimal
decimal ->octal & decimal ->hexadecimal
conversion of negative numbers to octal/hex