From: Joel VanderWerf Date: 2006-11-15T05:29:02+09:00 Subject: Re: Is 2.0 Integer or Float? James Edward Gray II wrote: > On Nov 14, 2006, at 2:21 PM, Wilson Bilkovich wrote: > >> IEEE floating point can store an exact representation of any integer >> that the fp number is large enough to contain. >> I've never used it this way, but supposedly that is used to handle >> 53-bit ints on platforms that have 64-bit floats and only 32-bit ints. >> >> That may or may not be what the OP is trying to do. > > I'm pretty sure Lua uses floats for everything, for exactly this reason. How does that work? Is there an 11-bit pattern that signifies "use the remaining 53 bits as a integer"? Do math library functions respect this? -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407