From owner-freebsd-chat Sun Jul 23 5: 6: 2 2000 Delivered-To: freebsd-chat@freebsd.org Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (Postfix) with ESMTP id 96B4537B945 for ; Sun, 23 Jul 2000 05:05:59 -0700 (PDT) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.9.3/8.9.3) id OAA36838; Sun, 23 Jul 2000 14:05:58 +0200 (CEST) (envelope-from olli) Date: Sun, 23 Jul 2000 14:05:58 +0200 (CEST) Message-Id: <200007231205.OAA36838@dorifer.heim3.tu-clausthal.de> From: Oliver Fromme To: freebsd-chat@FreeBSD.ORG Reply-To: freebsd-chat@FreeBSD.ORG Subject: dc (was: Re: vinum) X-Newsgroups: list.freebsd-chat In-Reply-To: <8led7u$26h8$1@atlantis.rz.tu-clausthal.de> Organization: Administration TU Clausthal MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (FreeBSD/3.4-19991219-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In list.freebsd-chat Alexander Langer wrote: > Thus spake Crist J. Clark (cristjc@earthlink.net): > > > However, dc is an odd tool. > > What? Not a fan of reverse-polish notation? > > No, it's not the polish notation, which is not a problem for me. > It's the odd thing, how it outputs stuff :) Hum? It outputs decimal numbers by default. And it can print both odd and even numbers. ;-) I use dc quite often in shell scripts to calculate all kinds of things. It's very useful, and it's portable. (Except for the "P" command which depends on the byte- level representation of numbers on the respective platforms, thus it is not portable.) By the way, I even think that dc is turing-complete. I haven't tried to prove it, though. :) Regards Oliver -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) Addresses will change soon!! If in doubt: www.fromme.com "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message