From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
To: "Sebastian" <di98mase@hotmail.com>
Cc: comp.lang.ada@ada-france.org
Subject: Re: how to safely convert from 32 to 16 bits?
Date: Sat, 4 Jun 2005 20:24:01 -0500
Date: 2005-06-04T20:24:01-05:00 [thread overview]
Message-ID: <mailman.7.1117934644.17633.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: 6acda821.0506040923.1790561c@posting.google.com
What compiler and hardware are you using that has a 16-bit Real type?
----- Original Message -----
From: "Sebastian" <di98mase@hotmail.com>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada-france.org>
Sent: June 04, 2005 12:23 PM
Subject: how to safely convert from 32 to 16 bits?
> Hi,
>
> Ho do I convert a larger variable like Integer to an smaller type
> without loosing any data?
>
> What I would like to do is:
>
> I have a variable of Integer_32 size, I also know that the value is
> always between -180 and 180. I would like to assign that value to a 16
> bits Real type.
>
> How can that be done without loosing any data?
>
> regards
>
> /Sebastian
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada-france.org
> http://www.ada-france.org/mailman/listinfo/comp.lang.ada
>
>
next prev parent reply other threads:[~2005-06-05 1:24 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
2005-06-05 1:24 ` David C. Hoos, Sr. [this message]
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