From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Integer data type
Date: 14 Oct 2002 14:54:58 -0400
Date: 2002-10-14T19:05:52+00:00 [thread overview]
Message-ID: <uit04yhod.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 7bd7d86e.0210110721.8097797@posting.google.com
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?
Hmm. To be extremely literal, this does what you are asking:
declare
A : integer := 1;
B : integer;
begin
B := A;
end;
Now B has the same binary representation of an integer that A has.
Note that "binary representation" means "a pattern of bits, usually
stored in memory".
But I suspect you meant something else.
Can you say more about what you are trying to do?
--
-- Stephe
next prev parent reply other threads:[~2002-10-14 18:54 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 [this message]
2002-10-15 13:13 ` Matthew Heaney
2002-10-15 15:59 ` Mark Biggar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox