From: di98mase@hotmail.com (Sebastian)
Subject: how to safely convert from 32 to 16 bits?
Date: 4 Jun 2005 10:23:28 -0700
Date: 2005-06-04T10:23:28-07:00 [thread overview]
Message-ID: <6acda821.0506040923.1790561c@posting.google.com> (raw)
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
next reply other threads:[~2005-06-04 17:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-04 17:23 Sebastian [this message]
2005-06-04 17:53 ` how to safely convert from 32 to 16 bits? 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.
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