From -2564089305181423152
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: jtorjo@yahoo.com (John Torjo)
Newsgroups: comp.std.c++
Subject: Re: Pi, Euler Number, and perhaps other 'natural' constants?
Date: Wed, 28 Jul 2004 15:55:11 GMT
Organization: http://groups.google.com
Lines: 39
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <c638aac5.0407280453.1569329c@posting.google.com>
References: <5cydnSisJNo4yJncRVn-sQ@speakeasy.net>
NNTP-Posting-Host: news.news.demon.net
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.demon.co.uk 1091030116 18281 158.152.254.254 (28 Jul 2004 15:55:16 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 28 Jul 2004 15:55:16 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
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=-2.2 required=5.2 tests=AWL,BAYES_00,
	FORGED_YAHOO_RCVD,FOR_FREE autolearn=no version=2.60-mulga_r1
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id i6SFtBwc014962;
	Thu, 29 Jul 2004 01:55:11 +1000 (EST)
X-Path: comp-std-cpp-robomod!not-for-mail
X-NNTP-Posting-Date: Wed, 28 Jul 2004 12:53:37 +0000 (UTC)
X-Spam-Level: 
X-Delivered-To: std-c++@ucar.edu
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Newsgroups: comp.std.c++
Xref: g2news1.google.com comp.std.c++:1474

"Steven T. Hatton" <hattons@globalsymmetry.com> wrote in message news:<5cydnSisJNo4yJncRVn-sQ@speakeasy.net>...
> I was a bit surprised that the Standard does not specify that the constant
> Pi be part of an implementation. It seems like an obvious feature to want
> in a programming language. The Euler Number would also be nice, but not
> nearly as desirable as Pi.  Sure there are questions of how to handle the
> difference between a float and a double Pi, but I'm (almost) sure that
> isn't a big obstacle.
> 
> I've found ways to jump though hoops to get Pi defined by using
> transcendental functions provided in the Standard Library, but that seems a
> bit convoluted to me.  Is there a reason Pi is missing from C++?

As others have pointed out, it's got an imprecise value, etc.
However, as I remember Paul Bristow is working on adding something to boost. 

Best,
John


John Torjo
Freelancer
-- john@torjo.com

Contributing editor, C/C++ Users Journal
-- "Win32 GUI Generics" -- generics & GUI do mix, after all
-- http://www.torjo.com/win32gui/
   
Professional Logging Solution for FREE
-- http://www.torjo.com/code/logging.zip (logging           - C++)
-- http://www.torjo.com/logview/         (viewing/filtering - Win32)
-- http://www.torjo.com/logbreak/        (debugging         - Win32)
                                         (source code available)

---
[ 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                       ]



