algorithm to convert N into base 3 wanted!

Ted Johnson tedj at hpcilzb.HP.COM
Tue Aug 23 12:06:30 AEST 1988


Does anyone know of an algorithm to convert a positive integer N into
its base 3 representation?  (e.g., 14 in base 10 is 112 in base 3).

Any textbook/journal pointers are appreciated!  (Source code is
appreciated even more :-)

-Ted



More information about the Comp.lang.c mailing list