From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19043 invoked from network); 11 May 2004 14:14:41 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 11 May 2004 14:14:41 -0000 Received: (qmail 9644 invoked from network); 11 May 2004 14:14:20 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 May 2004 14:14:20 -0000 Received: (qmail 19354 invoked by alias); 11 May 2004 14:14:16 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19917 Received: (qmail 19345 invoked from network); 11 May 2004 14:14:16 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 11 May 2004 14:14:13 -0000 Received: (qmail 9296 invoked from network); 11 May 2004 14:14:12 -0000 Received: from finlandia.infodrom.north.de (postfix@217.89.86.34) by a.mx.sunsite.dk with SMTP; 11 May 2004 14:14:10 -0000 Received: by finlandia.infodrom.north.de (Postfix, from userid 2006) id 8F63FFE7B; Tue, 11 May 2004 16:13:59 +0200 (CEST) Date: Tue, 11 May 2004 16:13:59 +0200 From: Matthias Kopfermann To: Peter Stephenson Cc: zsh-workers@sunsite.dk Subject: Re: print and floating point output Message-ID: <20040511141359.GA32388@finlandia.infodrom.north.de> References: <20040511130857.GA24416@finlandia.infodrom.north.de> <7010.1084281519@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <7010.1084281519@csr.com> X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 On Tue, May 11, 2004 at 02:18:39PM +0100, Peter Stephenson: > Matthias Kopfermann wrote: > > > If you are doing serious floating point work, unfortunately you need to > > > understand something about rounding errors, which are a tricky and > > > ever-present feature. > > > > I learned that here. > > Good lesson! The principle of least surprise is best satisfied by not > trusting rounding errors. it only _depends_ on what the user is expecting. And _I_ just expected the output of zcalc, python, ruby, perl and bc when using print with this example. :) And it's only _default_ we are talking about. So I am not convinced now but I of course respect this decision. Matthias