Mail Archives: djgpp/1996/02/01/02:09:35
On Wed, 31 Jan 1996, Armin Herzer wrote:
> What I want to do is to get the binary representation of a float
> or double (the way these numbers are stored in memory). How can I obtain
> them? How do I modify them? Is there a documentation from which I can see
Every book on Intel CPUs describes this. To get a bit pattern of any
float or double variable, cast them to an unsigned int and use the usual
bit operations. (In the case of double, you'll have to use long long.)
- Raw text -