Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: wrong value for pi?
- X-seq: zsh-workers 25370
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: wrong value for pi?
- Date: Sat, 2 Aug 2008 02:54:42 +0200
- In-reply-to: <200807301313.m6UDDLDI023411@xxxxxxxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080730125458.GB1113@xxxxxxxxx> <200807301313.m6UDDLDI023411@xxxxxxxxxxxxxx>
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 <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author