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: 103376,9b4538cfeb0c3576 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.71.MISMATCH!xlned.com!feeder3.xlned.com!feeder.news-service.com!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Float conversion Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <9e669a3b-1013-4bd1-b372-5f7dfa46d083@f42g2000yqn.googlegroups.com> Date: Thu, 29 Jul 2010 14:46:15 +0200 Message-ID: <1q5zc0ais535h$.1jqwfxhj9cflc$.dlg@40tude.net> NNTP-Posting-Date: 29 Jul 2010 14:46:15 CEST NNTP-Posting-Host: 35cf96f6.newsspool2.arcor-online.net X-Trace: DXC=:UEPU^=<6MjJ00P1S40fZgA9EHlD;3Ycb4Fo<]lROoRa8kF On Thu, 29 Jul 2010 05:23:42 -0700 (PDT), Henrique wrote: > I have some problems in converting float variables in Ada. Look at the > code below. > > Why var4 is not equal var1? Because they are not. Floating-point operations are inexact. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de