chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] long pointer equivalent


From: Perry E. Metzger
Subject: Re: [Chicken-users] long pointer equivalent
Date: 26 Aug 2002 12:36:57 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

"felix" <address@hidden> writes:
> > Well, it can't be a float in that if you're doing lseeks you really
> > want to specify which block in the disk it is you're looking for, not
> > which general section. :)
> 
> I don't understand. As long as you return/pass a float with 
> a zero fraction, everything should be ok:
> 
> (lseek 545485845.0 seek_cur)
> 
> It only has to be *representable* as a 64-bit number. And that
> can be checked in the call.

All fractionless zero-exponent 64 bit floats can be represented as 64
bit integers. The problem is that the reverse is not true -- all 64
bit integers cannot be represented exactly as the the mantissa of some
double precision float.


-- 
Perry E. Metzger                address@hidden
--
"Ask not what your country can force other people to do for you..."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]