🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #621

Re: How to do floating point division?

#621
From: Martin Ambuhl
Date: Tue, 23 Feb 1999 00:00
29 lines
1990 bytes
Kagenin wrote:
> 
> > It has been a couple of years so could be wrong, but isn't Pi difined in
> > math.h???????  If so wouldn't using that be a lot simpler?
> >
> > Bob
> 
> The Implementation of how many places Pi goes out there is up to the
> compiler's manufacturer.  All the ANSI standards say it only has to
> exist, but to my knowledge, it doesn't define how far it has to go.

There is no mention of pi in the standard, and it _cannor_ be there is
ANSI/ISO-conforming mode. The standard certainly doesn't require it to
exist.

> 
> For example, I know that gcc defines Pi in math.h differently than in
> MSVC (at least what I gather from the Quake 2 gamesx86.dll open source).

Did you notice the conditionals around those constants.  The
non-standard constants disappear when the compiler is invoked as a
standard C or C++ translator.




-- 
Martin Ambuhl (mambuhl@earthlink.net)
Note: mambuhl@tiac.net will soon be inactive
Technical Details
Message-ID: <36D26648.B32999E9@earthlink.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7Riz2.11845$cQ5.6291@nnrp2.clara.net> <QIlA2.244$Dy4.75@nnrp2.clara.net> <36D239CC.1E1D9580@devnull.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 143fed,e29ff327add874ff
X-Google-Attributes: gid143fed,public
X-Google-Thread: 114592,e29ff327add874ff
X-Google-Attributes: gid114592,public
X-Google-Thread: fb1d5,e29ff327add874ff
X-Google-Attributes: gidfb1d5,public
X-Google-Thread: 109fba,e29ff327add874ff
X-Google-Attributes: gid109fba,public
From: Martin Ambuhl <mambuhl@earthlink.net>
Subject: Re: How to do floating point division?
Date: 1999/02/23
Message-ID: <36D26648.B32999E9@earthlink.net>
X-Deja-AN: 447412538
Content-Transfer-Encoding: 7bit
References: <7Riz2.11845$cQ5.6291@nnrp2.clara.net> <QIlA2.244$Dy4.75@nnrp2.clara.net> <36D239CC.1E1D9580@devnull.com>
X-Accept-Language: en
X-Posted-Path-Was: not-for-mail
Content-Type: text/plain; charset=us-ascii
X-ELN-Date: 23 Feb 1999 08:26:36 GMT
X-ELN-Insert-Date: Tue Feb 23 00:35:01 1999
Organization: Nocturnal Aviation
Mime-Version: 1.0
Newsgroups: alt.comp.lang.learn.c-c++,claranet.local.help,claranet.local.tech,comp.lang.c++