From: Mark Biggar <mark.a.biggar@attbi.com>
Subject: Re: Integer data type
Date: Tue, 15 Oct 2002 15:59:12 GMT
Date: 2002-10-15T15:59:12+00:00 [thread overview]
Message-ID: <3DAC3813.5070208@attbi.com> (raw)
In-Reply-To: uqo52t5sumvs89@corp.supernews.com
Matthew Heaney wrote:
> "Stephen Leake" <stephen.a.leake.1@gsfc.nasa.gov> 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
prev parent reply other threads:[~2002-10-15 15:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-11 15:21 Integer data type Mark
2002-10-11 15:33 ` Martin Dowie
2002-10-11 16:50 ` Georg Bauhaus
2002-10-12 2:03 ` SteveD
2002-10-14 18:54 ` Stephen Leake
2002-10-15 13:13 ` Matthew Heaney
2002-10-15 15:59 ` Mark Biggar [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox