
Number Theory Number Theory Math Forum 
 LinkBack  Thread Tools  Display Modes 
October 1st, 2011, 01:15 AM  #1 
Newbie Joined: Oct 2011 Posts: 2 Thanks: 0  Ways of STRAIGHTLY converting hexadecimal to octal & inverse
how can i convert octal numbers to hexadecimal numbers straightly (Means not the one we first convert to decimal and nor the one we convert to binary then to the other) just hexadecimal to octal and octal to hexadecimal ... THANK YOU!!!

October 1st, 2011, 03:30 AM  #2 
Member Joined: Apr 2010 Posts: 65 Thanks: 0  Re: Ways of STRAIGHTLY converting hexadecimal to octal & inv Code: B1A53 // hex 0B1  A53 // 3 digits 0 0 0 0  1 0 1 1  0 0 0 1  1 0 1 0  0 1 0 1  0 0 1 1 // binary        // 3 bits 0 2 6 1 5 1 2 3 // octal B1A53 (hex) == 2615123(oct) 3 digits hex <==> 4 digits oct tabble 
October 1st, 2011, 06:01 AM  #3 
Newbie Joined: Oct 2011 Posts: 2 Thanks: 0  Re: Ways of STRAIGHTLY converting hexadecimal to octal & inv
Thanks for the reply, but i was looking for other ways to convert octal to hexadecimal straightly...not octal > binary >hexa and hexa > binary > octal. Just hexa > octal and octal > hexa....May i know of anyways please?Thanks 
October 1st, 2011, 09:32 AM  #4 
Global Moderator Joined: Nov 2006 From: UTC 5 Posts: 16,046 Thanks: 938 Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms  Re: Ways of STRAIGHTLY converting hexadecimal to octal & inv
You can use a lookup table or calculation to make the conversion "direct" as you say, but using binary as an intermediate will be at least as fast. Generally, if you're converting from base b^x to base b^y, converting to base b^gcd(x,y) is a good first step.


Tags 
converting, hexadecimal, inverse, octal, straightly, ways 
Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Signed hexadecimal computation!  eChung00  Computer Science  3  March 4th, 2013 03:59 PM 
Binary to hexadecimal  Igo  Computer Science  3  September 7th, 2012 04:58 AM 
Hexadecimal Addition...  Primalscientist  Computer Science  13  April 20th, 2011 01:41 PM 
Hexadecimal Notation  Primalscientist  Computer Science  3  April 17th, 2011 04:31 AM 
I need some help on binary, hexadecimal and decimal numbers!  johnny  Computer Science  2  October 13th, 2007 03:00 PM 