Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jan 2001 17:42:06 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Salvo Bartolotta <bartequi@inwind.it>, Mike Meyer <mwm@mired.org>, freebsd-chat@FreeBSD.ORG
Subject:   Re: OT again: Re: hexidecimal literacy
Message-ID:  <20010128174206.C55504@hades.hell.gr>
In-Reply-To: <xzp7l3gplg5.fsf@flood.ping.uio.no>; from des@ofug.org on Sun, Jan 28, 2001 at 01:30:34AM %2B0100
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> <xzpbssspmes.fsf@flood.ping.uio.no> <20010128.252500@bartequi.ottodomain.org> <xzp7l3gplg5.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 28, 2001 at 01:30:34AM +0100, Dag-Erling Smorgrav wrote:
> Salvo Bartolotta<bartequi@inwind.it> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010128174206.C55504>