@Saurabh: Implement a long division algorithm using the original base. Divide the number by the second base. Convert the remainder to a single digit in the new base. This is the low-order digit. Apply this divide and convert algorithm to the successive quotients to get the successive digits.
Dave On May 21, 5:18 am, saurabh agrawal <[email protected]> wrote: > Hi, can someone give an algorithm to directly convert a number in a given > base to a number in another base, without converting it into some another > intermediate base. > > I have done that using some numerical analysis techniues, but dont remember > now. > > Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
