Link to home
Start Free TrialLog in
Avatar of yes4me
yes4me

asked on

Conversion from decimal to hexadecimal(base 16) to Octadecimal(Base 8)

To make a short story, how do you convert a base n number to some base m number?

For example, here is how you do in Java from base 10 to 8:
String tmpOCT = Integer.toString(tmpValue , 8);
Avatar of Conroyjm
Conroyjm

Conversions to hex is quite similar:

String tmpHex = tmpValue.ToString("X")

Don't know about octal though.

Jaco Conroy
ASKER CERTIFIED SOLUTION
Avatar of Jazzyfoot
Jazzyfoot

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial