From mboxrd@z Thu Jan 1 00:00:00 1970
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
autolearn_force=no version=3.4.4
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103376,c7fc42d2c6a0eedc
X-Google-Attributes: gid103376,public
X-Google-ArrivalTime: 2003-04-05 09:02:33 PST
Path:
archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!teaser.fr!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: Ada2005 random
Date: 05 Apr 2003 19:02:03 +0200
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References: <2Xwja.370890$S_4.443638@rwcrnsc53>
NNTP-Posting-Host: avelizy-103-1-4-24.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news-reader11.wanadoo.fr 1049562152 13482 80.11.102.24 (5 Apr 2003
17:02:32 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 5 Apr 2003 17:02:32 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.95
Xref: archiver1.google.com comp.lang.ada:35952
Date: 2003-04-05T17:02:32+00:00
List-Id:
tmoran@acm.org writes:
> > Ok, but integer has a range of -(2 ** 31) .. +(2 ** 31 - 1) so the difference
> > could be something around +/- (x / (2 ** 31 - 1)) !
> A small error if x is small, but rather large if x is, say, 3/8 * 2**31
Right, reading original question it seems that x was supposed to be small.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595