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,908b0acacbaccca8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-15 08:59:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn11feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!sccrnsc03.POSTED!not-for-mail Message-ID: <3DAC3813.5070208@attbi.com> From: Mark Biggar User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Integer data type References: <7bd7d86e.0210110721.8097797@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 12.235.91.30 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc03 1034697552 12.235.91.30 (Tue, 15 Oct 2002 15:59:12 GMT) NNTP-Posting-Date: Tue, 15 Oct 2002 15:59:12 GMT Organization: AT&T Broadband Date: Tue, 15 Oct 2002 15:59:12 GMT Xref: archiver1.google.com comp.lang.ada:29800 Date: 2002-10-15T15:59:12+00:00 List-Id: Matthew Heaney wrote: > "Stephen Leake" wrote in message > news:uit04yhod.fsf@gsfc.nasa.gov... > >>msims@uoguelph.ca (Mark) writes: >> >> >>>Is it possible to extract the binary representation of an integer >>>variable and store that binary representation in another variable? >> >> >>But I suspect you meant something else. > > > He probably needs Unchecked_Conversion. No, all integers types are freely inter-convertable (modulo CE due to range checks) so I don't think he needs Unchecked_Conversion, unless he wants to convert from integer to a complete different form of type like "array of boolean". He probably wants to convert to a string of "1" & "0" characters, in which case he should use Text_IO.Put to a string with Base => 2. -- Mark Biggar mark.a.biggar@attbi.com