0

Hi friends,

Can any one tell me the java program that how to convert Octa Decimal to HexaDecimal without using inbuild functions.
I tried a lot but not successful.
Please Please Please post the program...

Thanks in advance..

3
Contributors
2
Replies
9
Views
4 Years
Discussion Span
Last Post by bguild
0

There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in helping you cheat or doing your homework for you.

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/community/rules

0

This is something you can easily do yourself! Just take your numeral one digit at a time from left to right and keep an accumulator that starts at 0. For each digit, multiply the accumulator by the base and then add the value of the digit. You can reverse the process to print out the number in whatever base you like by using % and division, but of course that will get the digits from right to left so you'd have to construct the string before writing it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.