Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!topaz!gaynor From: gaynor@topaz.RUTGERS.EDU (Silver) Newsgroups: comp.lang.c,net.sources Subject: Re: binary radix (+ some source) + my $0.02 Message-ID: <11336@topaz.RUTGERS.EDU> Date: Wed, 22-Apr-87 18:39:14 EST Article-I.D.: topaz.11336 Posted: Wed Apr 22 18:39:14 1987 Date-Received: Fri, 24-Apr-87 05:28:49 EST References: <213@pyuxe.UUCP> <710@brl-sem.ARPA> <422@ivax.doc.ic.ac.uk> <2970@pegasus.UUCP> <581@csun.UUCP> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 14 Keywords: octal, hex, binary Xref: mnetor comp.lang.c:1855 net.sources:4356 Until generally recognized as builtins, it might be a good idea to make references to numbers in non-standard radixes as macros or routines to do the radix conversion. For an example, instead of saying something like 143b9, say something like rad_conv(143,9) (for those of you who like typing, convert_to_radix(142,9)). It doesn't read as well, but it is a portable solution. But that shouldn't make a big difference, since such fine programmers as ourselves <:-D minimize the number of instances of magik numbers in our code. "The Laughing Fool ( <:-D )" Silver