Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

decimal ->octal & decimal ->hexadecimal

 
geetha nagarajan
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to convert a decimal value ,to octal /hexadecimal?
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by geetha nagarajan:
How to convert a decimal value ,to octal /hexadecimal?

Convert that decimal value to binary. From there, it's very easy to convert to octal or hex.
If you need examples, do a search in this forum - there are gobs of them.
Corey
 
geetha nagarajan
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone explain that with an example,pl?
Thanks.
 
Francisco A Guimaraes
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look at this thread
if you still have doubts after this, please let me know.
Francisco
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by geetha nagarajan:
Could someone explain that with an example,pl?
Thanks.

Use the search facility. Here are some threads I uncovered:
number converstion between(decimal, octal, Hex)
Binary, Octal, and Hex
Hexidecimal and octal question!!
Conversion of binary to Hex and Octal State
Using search would provide you with an immediate answer. Otherwise, you might have to wait a while (possibly hours) before someone replies to your message. Don't be afraid to search for what you want. This forum has been around a while - there's lots out there to search through.
Corey
 
geetha nagarajan
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot,got it.
Ya,will use the search facility more often from now on.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic