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,388fc53f584bd695 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!news.teledata-fn.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Fixed point constants issue 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: <1f0l0baynq1x7$.phl9cqpwcr37.dlg@40tude.net> <1ak1k4eh1p96t$.essf9fu1cx4z$.dlg@40tude.net> Date: Wed, 15 Sep 2010 10:35:22 +0200 Message-ID: <1nlhu18d10l2j$.1o2b3qlrc5rki$.dlg@40tude.net> NNTP-Posting-Date: 15 Sep 2010 10:35:22 CEST NNTP-Posting-Host: f3e53600.newsspool4.arcor-online.net X-Trace: DXC=B6?VZ0KRHVT<<0iRN7DLEQ4IUK On Tue, 14 Sep 2010 19:42:52 +0200, Vinzent Hoefler wrote: > On Tue, 14 Sep 2010 09:47:03 +0200, Dmitry A. Kazakov > wrote: > >> Well, I don't disagree, but the part of the problem is a non-intended >> use. > > Well, the actually intended use was to create a range constrained subtype > from an existing full-range fixed point type: > > -- 8< -- snip -- > type BASE_TYPE is delta 1.0 / 64.0 range 0.0 .. 1.0; > for BASE_TYPE'Small use 1.0 / 128.0; But use suggests rather: type Base_Type is delta 0.01 digits 3 range 0.0..1.0; or type Base_Type is delta 0.01 digits 3 range -1.0..1.0; -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de