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,421379614df5a9cd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!news.weisnix.org!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Range excluding 0.0 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: <6f1ce89e-7889-4d58-b0f8-1945727f5149@f33g2000vbm.googlegroups.com> Date: Sat, 29 Aug 2009 15:12:49 +0200 Message-ID: NNTP-Posting-Date: 29 Aug 2009 15:12:43 CEST NNTP-Posting-Host: 153fcce8.newsspool3.arcor-online.net X-Trace: DXC=h1[ohLE1DNb[F<50eo:0knMcF=Q^Z^V3h4Fo<]lROoRa^YC2XCjHcbi1obUf_i?@_gDNcfSJ;bb[eIRnRBaCd On Sat, 29 Aug 2009 05:50:38 -0700 (PDT), vlc wrote: > I would like to declare a subtype of Float which ranges from 0.0 > (excluded) to Float'Last. Is there a way to exclude the 0.0 from the > range? subtype Positve_Float is Float range Float'Succ (0.0)..Float'Last; When the machine is IEEE, this also excludes IEEE ideals between zero and machine epsilon as well as infinities. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de