Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HELP - Negative in Octal And HexaDecimal

 
Saurabh Sahay
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Can anyone please mention the basics of how to represent negative numbers in Octal and Hexadecimal Format.
regards
 
Tom Blough
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Octal and Hex are just shorthand representations of binary numbers. Research "twos complement" for representing binary numbers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic