algorithm to convert N into base 3 wanted!

WU SHI-KUEI wu at spot.Colorado.EDU
Wed Aug 24 11:43:33 AEST 1988


In article <650003 at hpcilzb.HP.COM> tedj at hpcilzb.HP.COM (Ted Johnson) writes:
>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).

	'bc' with obase = 3

does a dandy job.

A guest here.  In real life
Carl Brandauer
nbires!bdaemon!carl



More information about the Comp.lang.c mailing list