Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!agate!sag4.ssl.berkeley.edu!gckaplan From: gckaplan@sag4.ssl.berkeley.edu (George Kaplan) Newsgroups: comp.lang.c Subject: Floating-point integers (was: Array indexing vs. pointers...) Message-ID: <15372@agate.BERKELEY.EDU> Date: 13 Oct 88 02:26:29 GMT References: <836@proxftl.UUCP> <3105@hubcap.UUCP> <1700@dataio.Data-IO.COM> <10332@s.ms.uky.edu> <711@wsccs.UUCP> Sender: usenet@agate.BERKELEY.EDU Organization: University of California, Berkeley Lines: 16 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