From: James Edward Gray II Date: 2006-11-15T05:40:28+09:00 Subject: Re: Is 2.0 Integer or Float? On Nov 14, 2006, at 2:29 PM, Joel VanderWerf wrote: > 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? I have no idea how they do what they do: http://lua-users.org/wiki/FloatingPoint James Edward Gray II