From: Pascal Obry <pascal@obry.net>
Subject: Re: how to safely convert from 32 to 16 bits?
Date: 05 Jun 2005 10:13:00 +0200
Date: 2005-06-05T10:13:05+02:00 [thread overview]
Message-ID: <uk6l9cjcj.fsf@obry.net> (raw)
In-Reply-To: 5JednXDeC-wgaDzfRVn-hQ@adelphia.com
"Robert Klungle" <bklungle@adelphia.net> writes:
> Unless I misread the requestor, I think the following would more direct:
>
> A : Integer_32;
> B : Real_16;
>
> B := Real_16(A);
I see the OP want to convert from Real type to Integer_32 without loosing data.
Now it would be nice to know what is meant by "loosing no data" ? How many
digits for example ?
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
next prev parent reply other threads:[~2005-06-05 8:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-04 17:23 how to safely convert from 32 to 16 bits? Sebastian
2005-06-04 17:53 ` Pascal Obry
2005-06-04 18:45 ` Robert Klungle
2005-06-05 8:13 ` Pascal Obry [this message]
2005-06-05 1:24 ` David C. Hoos, Sr.
2005-06-05 5:03 ` Keith Thompson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox