🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to do floating point division?

#624
From: Gerry OBrien
Date: Fri, 19 Feb 1999 00:00
10 lines
964 bytes
Use 22.0 and 7.0

Gerry


Jules wrote in message <7Riz2.11845$cQ5.6291@nnrp2.clara.net>...
>Dear all, I want to do a const line like this in C++:
>
>const float pi = 22/7;
>
Technical Details
Message-ID: <7ake2f$cri$1@garnet.nbnet.nb.ca>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7Riz2.11845$cQ5.6291@nnrp2.clara.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114592,e29ff327add874ff
X-Google-Attributes: gid114592,public
X-Google-Thread: 143fed,e29ff327add874ff
X-Google-Attributes: gid143fed,public
X-Google-Thread: 109fba,e29ff327add874ff
X-Google-Attributes: gid109fba,public
X-Google-Thread: fb1d5,e29ff327add874ff
X-Google-Attributes: gidfb1d5,public
From: "Gerry O'Brien" <gkcomput(at)@nbnet.nb.ca>
Subject: Re: How to do floating point division?
Date: 1999/02/19
Message-ID: <7ake2f$cri$1@garnet.nbnet.nb.ca>
X-Deja-AN: 446164178
References: <7Riz2.11845$cQ5.6291@nnrp2.clara.net>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: NBTel Internet
Newsgroups: alt.comp.lang.learn.c-c++,claranet.local.help,claranet.local.tech,comp.lang.c++