[comp.lang.c] Floating-point integers

gckaplan@sag4.ssl.berkeley.edu (George Kaplan) (10/13/88)

In article <711@wsccs.UUCP> dharvey@wsccs.UUCP (David Harvey) writes:
>
>For that matter, it is also very difficult to represent 10.0 (I am
>assuming you are working with floating point) in any floating point
>representation.  

I don't think this is correct.  You should be able to represent any
integer value exactly as long as its absolute value is less than 2**n,
where n is the number of bits in the significand.

>dharvey@wsccs

	George C. Kaplan		gkaplan@sag4.ssl.berkeley.edu
	Space Sciences Lab
	University of California
	Berkeley, CA  94720