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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.118.82 with SMTP id z79mr597524itb.15.1512120276611; Fri, 01 Dec 2017 01:24:36 -0800 (PST) X-Received: by 10.157.69.72 with SMTP id p8mr257133oti.4.1512120276451; Fri, 01 Dec 2017 01:24:36 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer02.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!193no485949itr.0!news-out.google.com!x87ni647ita.0!nntp.google.com!193no485946itr.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 1 Dec 2017 01:24:36 -0800 (PST) In-Reply-To: <6488d44e-1ea7-47bc-8d01-ab571677b6a5@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=136.163.203.6; posting-account=g0yTkgoAAADdZGEYyZahxGlO3EkjH0Wv NNTP-Posting-Host: 136.163.203.6 References: <6488d44e-1ea7-47bc-8d01-ab571677b6a5@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6002f2d2-71da-4cc1-aae4-c1de68ef2694@googlegroups.com> Subject: Re: Converting 64 bit float to record containing a record of one 32 bit integer and one 32 unsigned. From: Petter Fryklund Injection-Date: Fri, 01 Dec 2017 09:24:36 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 4155084341 X-Received-Bytes: 1750 Xref: reader02.eternal-september.org comp.lang.ada:49294 Date: 2017-12-01T01:24:36-08:00 List-Id: Please don't waste time! This was actually fun to implement! I created my own float2hex. This was po= ssible since I could work with the Integer part only (Float'Floor) looping = (taking the remainder after division by 16 and filling a string(1..15) back= wards). Might be a coding practice for learners. Regards, Petter