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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a96b706fab1e8c2c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-02 10:41:35 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!demon!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: <9e2x6.568987$JT5.15730002@news20.bellglobal.com> <9a2dnu$sff$1@nh.pace.co.uk> <3AC8AC34.CDEEB50F@boeing.com> Subject: Re: Binary value X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Mon, 2 Apr 2001 18:36:42 +0100 NNTP-Posting-Host: 62.252.138.221 X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 986232989 62.252.138.221 (Mon, 02 Apr 2001 18:36:29 BST) NNTP-Posting-Date: Mon, 02 Apr 2001 18:36:29 BST Organization: ntlworld News Service Xref: supernews.google.com comp.lang.ada:6362 Date: 2001-04-02T18:36:42+01:00 List-Id: > [incorrect algorithm deleted] one mistake made in haste! I appologise! > Ignoring the question of what the correct algorithm is, why would you > want to implement this (specific to binary) algorithm, when Text_IO > already provides this capability for any base from 2 to 16? It's much > easier and more flexible to use Text_IO.Integer_IO.Put and extract the > part of the result between the '#'s. Guess it's just me. This is how we done conversions in school and it was the first thing that popped into my head. You're right i should provide a 2 to 16 base feature which would just be slight modification (with added complications for base > 10). Chris