Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: wrong value for pi?



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