From owner-freebsd-chat Sun Jan 28 14:41:20 2001 Delivered-To: freebsd-chat@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id C23AE37B400 for ; Sun, 28 Jan 2001 14:41:01 -0800 (PST) Received: from hades.hell.gr (root@patr530-a094.otenet.gr [212.205.215.94]) by mailsrv.otenet.gr (8.11.1/8.11.1) with ESMTP id f0SMeoK09308; Mon, 29 Jan 2001 00:40:51 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.1/8.11.1) id f0SFg6F55637; Sun, 28 Jan 2001 17:42:06 +0200 (EET) Date: Sun, 28 Jan 2001 17:42:06 +0200 From: Giorgos Keramidas To: Dag-Erling Smorgrav Cc: Salvo Bartolotta , Mike Meyer , freebsd-chat@FreeBSD.ORG Subject: Re: OT again: Re: hexidecimal literacy Message-ID: <20010128174206.C55504@hades.hell.gr> References: <14963.8033.752142.149320@guru.mired.org> <20010127.20140200@bartequi.ottodomain.org> <14963.13797.116165.382738@guru.mired.org> <20010127.22394200@bartequi.ottodomain.org> <14963.21950.110019.468965@guru.mired.org> <20010127.23473800@bartequi.ottodomain.org> <20010128.252500@bartequi.ottodomain.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from des@ofug.org on Sun, Jan 28, 2001 at 01:30:34AM +0100 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, Jan 28, 2001 at 01:30:34AM +0100, Dag-Erling Smorgrav wrote: > Salvo Bartolotta writes: > > > 11111 in unary is 1*(1^0) + 1*(1^1) + 1*(1^2) + 1*(1^3) + 1*(1^4). > > This ahem "system" is a little curious: eg how do you represent, erm, > > 0 ? With bells (and whistles) ? :-) > > An empty string :) But since bc(1) does not use some form of "quoting" to its output, you would not be able to tell if the result of the following is `zero' or a really empty string meaning `no result'. $ ( echo "obase=1" ; echo "" ) | bc and the output would be exactly the same as that for: $ ( echo "obase=1" ; echo "0" ) | bc giorgos >}:-} To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message