🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: High-precision fixed point math

#587
From: Alf P. Steinbach
Date: Wed, 18 Sep 2002 02:49
15 lines
1601 bytes
On Wed, 18 Sep 2002 02:02:04 GMT, "Mike K" <mkipper@rogers.com> wrote:

>Hi,
>
>To start off, yes this is a school question. The question is as follows:
>Write a C++ program to calculate and print the square root of an integer to
>40 decimal points.

Can you choose the integer yourself?  In that case, calculate and write
out the square root of 4.  Limit yourself to integers, and assert that
the computed integer square root is a precise square root.

Hth.,

- Alf
Technical Details
Message-ID: <3d87e96a.119498953@news.online.no>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.213.112.26!newsfeed1.ulv.nextra.no!nextra.com!news4.ulv.nextra.no.POSTED!53ab2750!not-for-mail
References: <w8Rh9.77700$561.55900@news02.bloor.is.net.cable.rogers.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,951da3994a2133ff
X-Google-Attributes: gid109fba,public
X-Google-Thread: 114592,951da3994a2133ff
X-Google-Attributes: gid114592,public
X-Google-Thread: 102541,951da3994a2133ff
X-Google-Attributes: gid102541,public
X-Google-ArrivalTime: 2002-09-17 19:49:26 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.213.112.26!newsfeed1.ulv.nextra.no!nextra.com!news4.ulv.nextra.no.POSTED!53ab2750!not-for-mail
From: alf_p_steinbach@yahoo.no.invalid (Alf P. Steinbach)
Newsgroups: alt.comp.lang.learn.c-c++,borland.public.cppbuilder.students,comp.lang.c++
Subject: Re: High-precision fixed point math
Message-ID: <3d87e96a.119498953@news.online.no>
References: <w8Rh9.77700$561.55900@news02.bloor.is.net.cable.rogers.com>
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 16
NNTP-Posting-Host: 130.67.107.156
X-Complaints-To: news-abuse@nextra.no
NNTP-Posting-Date: Wed, 18 Sep 2002 04:49:26 MEST
X-Trace: news4.ulv.nextra.no 1032317366 130.67.107.156
Date: Wed, 18 Sep 2002 02:49:26 GMT