From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18943 invoked from network); 2 Aug 2008 00:55:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Aug 2008 00:55:45 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 70823 invoked from network); 2 Aug 2008 00:55:09 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Aug 2008 00:55:09 -0000 Received: (qmail 5771 invoked by alias); 2 Aug 2008 00:54:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25370 Received: (qmail 5746 invoked from network); 2 Aug 2008 00:54:49 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 2 Aug 2008 00:54:49 -0000 Received: from prunille.vinc17.org (vinc17.pck.nerim.net [213.41.242.187]) by bifrost.dotsrc.org (Postfix) with ESMTP id 272DA805A42E for ; Sat, 2 Aug 2008 02:54:43 +0200 (CEST) Received: by prunille.vinc17.org (Postfix, from userid 501) id 30E61253B674; Sat, 2 Aug 2008 02:54:43 +0200 (CEST) Date: Sat, 2 Aug 2008 02:54:42 +0200 From: Vincent Lefevre To: zsh-workers@sunsite.dk Subject: Re: wrong value for pi? Message-ID: <20080802005442.GB1362@prunille.vinc17.org> Mail-Followup-To: zsh-workers@sunsite.dk References: <20080730125458.GB1113@plenz.com> <200807301313.m6UDDLDI023411@news01.csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200807301313.m6UDDLDI023411@news01.csr.com> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.18-vl-r23999 (2008-07-25) X-Virus-Scanned: ClamAV 0.92.1/7914/Sat Aug 2 01:16:25 2008 on bifrost X-Virus-Status: Clean On 2008-07-30 14:13:21 +0100, Peter Stephenson wrote: > It's simply a question of what double precision actually gives on your > system, as it says in the manual (" Floating point arithmetic always > uses the ???double??? type with whatever corresponding precision is > provided by the compiler and the library."). Beyond that the digits > will certainly be gobbledygook. In fact, the digits should be correct for the double precision number (i.e. after rounding). BTW, zsh could optionally use MPFR. :) -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)