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,c1bdceb867926fdb 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!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!news.musoftware.de!wum.musoftware.de!news.weisnix.org!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Interfacing Ada with C 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: <0ee9eec7-6024-4fb8-8df0-f65c146e4b84@i28g2000yqa.googlegroups.com> <143ef70b-7e74-426b-a621-a5fd157849be@x21g2000yqa.googlegroups.com> <06eb8f61-2a0c-4dda-93f3-8414d32b6e4f@f20g2000pro.googlegroups.com> <87pqxwrwtz.fsf@hugsarin.sparre-andersen.dk> Date: Fri, 6 Aug 2010 10:42:26 +0200 Message-ID: <1t7qv7gn9gugg$.alpj3tkmkw1y$.dlg@40tude.net> NNTP-Posting-Date: 06 Aug 2010 10:42:27 CEST NNTP-Posting-Host: b32259a8.newsspool3.arcor-online.net X-Trace: DXC=[0UCBSZF^kkOKO]LCQ@0g`McF=Q^Z^V3h4Fo<]lROoRa8kFIf X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:12897 Date: 2010-08-06T10:42:27+02:00 List-Id: On Fri, 06 Aug 2010 10:04:24 +0200, Jacob Sparre Andersen wrote: > Ada novice wrote: > >> Can we change the subtype to Long_Long_Float? This will be of 18 >> precision digits [...] > > That's not guaranteed. If you want 18 digits, you should declare the > type (My_Float?) as: > > type My_Float is digits 18; Further, practically you should never use subtype in the form subtype My_Float is Long_Float; except for special cases like: subtype Non_IEEE_Float is Long_Float range Long_Float'Range; or subtype Non_Negative_Float is Long_Float range 0.0..Long_Float'Last; -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de