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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,47fc49812a5e8e38 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!feeder.news-service.com!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!bnewspeer01.bru.ops.eu.uu.net!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: small example, using complex variables in Ada Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <82ljannyeq.fsf@stephe-leake.org> Date: Fri, 11 Jun 2010 09:22:54 +0200 Message-ID: <1pm8pkha276px.hasdbg6wxhwv.dlg@40tude.net> NNTP-Posting-Date: 11 Jun 2010 09:22:50 CEST NNTP-Posting-Host: 63b6367e.newsspool3.arcor-online.net X-Trace: DXC=JZnJ]Imj:9[@>[RYkFXOIPMcF=Q^Z^V3X4Fo<]lROoRQ8kF On Thu, 10 Jun 2010 23:15:37 +0200, Yannick Duch�ne (Hibou57) wrote: > Le Thu, 10 Jun 2010 15:27:38 +0200, J-P. Rosen a �crit: >> For output, rounding is specified in the standard. And BTW, the standard >> does not specify IEEE (fortunately, it did not make the same mistake as >> Java!). > Which mistake ? (not to disagree, just to understand) Making language hardware-dependent. Plus, IEEE is not very good for computational and engineering tasks. In particular, when programming in Ada, you should better kill IEEE semantics regarding overflows for built-in types. E.g. type Real is new Float range Float'Range; -- Now it works as it has to -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de