From 4171494250834187289
X-Google-Thread: f78e5,4ba9dcb1ae436e16
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: nagle@animats.com (John Nagle)
Newsgroups: comp.std.c++
Subject: Re: Pi, Euler Number, and perhaps other 'natural' constants?
Date: Thu, 29 Jul 2004 04:50:20 GMT
Organization: SBC http://yahoo.sbc.com
Lines: 27
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <iARNc.1538$e63.477@newssvr27.news.prodigy.com>
References: <5cydnSisJNo4yJncRVn-sQ@speakeasy.net> <ce5ais$f50$1@news.inter.net.il> <mrvNc.3129$AY5.1919@newssvr21.news.prodigy.com> <P1JNc.15868$1V3.392640@twister2.libero.it>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.demon.co.uk 1091076628 2801 158.152.254.254 (29 Jul 2004 04:50:28 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Thu, 29 Jul 2004 04:50:28 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113
X-Spam-Checker-Version: SpamAssassin 2.60-mulga_r1 (1.212-2003-09-23-exp) on 
	mulga.cs.mu.OZ.AU
X-Spam-Status: No, hits=-3.3 required=5.2 tests=AWL,BAYES_00 autolearn=ham 
	version=2.60-mulga_r1
X-Accept-Language: en-us, en, ja
X-UserInfo1: TSUGW^_D\JUQB\D[NCOF_W\@PJ_^PBQLGPQRJVMHQAVTUZ]CLNTCPFK[WDXDHV[K^FCGJCJLPF_D_NCC@FUG^Q\DINVAXSLIFXYJSSCCALP@PB@\OS@BITWAH\CQZKJMMD^SJA^NXA\GVLSRBD^M_NW_F[YLVTWIGAXAQBOATKBBQRXECDFDMQ\DZFUE@\JM
X-Path: comp-std-cpp-robomod!not-for-mail
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id i6T4oKWe029368;
	Thu, 29 Jul 2004 14:50:20 +1000 (EST)
X-NNTP-Posting-Date: Wed, 28 Jul 2004 13:42:38 EDT
X-Spam-Level: 
X-Delivered-To: std-c++@ucar.edu
X-Spamscanner: mailbox7.ucsd.edu  (v1.4 May 20 2004 13:55:33, 0.0/5.0 2.63)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Newsgroups: comp.std.c++
X-MailScanner: PASSED (v1.2.8 2601 i6SHherJ016052 mailbox7.ucsd.edu)
Xref: g2news1.google.com comp.std.c++:1483

Alberto Barbati wrote:
> John Nagle wrote:
> 
>> Daniel Pfeffer wrote:
>>
>>    We should have "std::pi" as a double, accurate to the last bit
>> of a double, even if it has to be calculated offline and
>> stored as a hex float.  This is worth doing, because it's
>> a huge pain to do that and it only needs to be done once.
>>
> 
> Should std::pi be a constant? As my current programming platform is 
> ix86-based I would prefer having a function instead. That's because 
> there is a FPU instruction ...

    This is an argument for 80-bit floating point support in C++.
What's the thinking on that?  Most FPUs in the world today
have support for it.

				John Nagle

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



