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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,fa37ee962bc4b00d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!b1g2000vbc.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: Conversion from floating point to signed 16 bits Date: Wed, 20 May 2009 08:23:09 -0700 (PDT) Organization: http://groups.google.com Message-ID: <14718292-2ea8-4c22-8cf6-47671490976d@b1g2000vbc.googlegroups.com> References: <4a12ffa3$0$2853$ba620e4c@news.skynet.be> <4a13e54a$0$32672$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Host: 86.163.75.222 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1242832989 28693 127.0.0.1 (20 May 2009 15:23:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 20 May 2009 15:23:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b1g2000vbc.googlegroups.com; posting-host=86.163.75.222; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.10) Gecko/2009042315 Firefox/3.0.10,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5960 Date: 2009-05-20T08:23:09-07:00 List-Id: On May 20, 4:18=A0pm, "Jeffrey R. Carter" wrote: > Martin wrote: > > > Or better - just use package Interfaces instead... > > No. Interfaces.Unsigned_16 is a modular type. The OP's Unsigned_16 is a s= igned > integer type. > > -- > Jeff Carter > "English bed-wetting types." > Monty Python & the Holy Grail > 15 So it is!! A rather poorly named type then...tricky to think of a better name though - perhaps the Interfaces names should have been Modular_16 / etc. Too late now...back to Int16 and Uint16 it is then... Cheers -- Martin