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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e55245590c829bef X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!fdn.fr!gegeweb.org!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: _Type vs no _Type Date: Sun, 07 Nov 2010 04:12:43 +0100 Organization: Ada @ Home Message-ID: References: <86wroy58ff.fsf@gareth.avalon.lan> <86pqup5xfy.fsf@gareth.avalon.lan> <86y69d3rec.fsf@gareth.avalon.lan> <82lj5c5ecm.fsf@stephe-leake.org> <82zktq4n9b.fsf_-_@stephe-leake.org> <4cd53555$0$7665$9b4e6d93@newsspool1.arcor-online.net> <2eff1732-3608-493b-bb80-114313e50b88@u10g2000yqk.googlegroups.com> NNTP-Posting-Host: w00cPq0BvzOlRCSRJJEoeQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.63 (Win32) Xref: g2news1.google.com comp.lang.ada:15364 Date: 2010-11-07T04:12:43+01:00 List-Id: Le Sun, 07 Nov 2010 03:57:33 +0100, Shark8 a = = =C3=A9crit: > On Nov 6, 3:58 pm, Yannick Duch=C3=AAne (Hibou57) > wrote: >> > Excepting floating point numbers; addition is commutative, isn't it= ? >> >> I would welcome an example here. Does not mean I do not believe that = (I = >> know floating points easily leads to trouble), just that I would lik= e = >> to understand, as I always though even with floating points, the = >> addition is commutative. > > The general way to show the non-commutativity of floating-point would > be > something like the initialization of the number to something large, > say > a hundred-million, and some repetitive additions of some small number > say a hundred-thousand hundred-thousandths, so that what you would > expect > mathematically would be a hundred-million and one would actually have > the > value one hundred million. OK, this was about iteration. Yes, I know the case of iterations. -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens. =E2=80=9CI am fluent in ASCII=E2=80=9D [Warren 2010]