Floating-point integers (was: Array indexing vs. pointers...)

George Kaplan gckaplan at sag4.ssl.berkeley.edu
Thu Oct 13 12:26:29 AEST 1988


In article <711 at wsccs.UUCP> dharvey at 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 at wsccs

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



More information about the Comp.lang.c mailing list