[gambit-list] number->integer
Marc Feeley
feeley at iro.umontreal.ca
Thu Oct 30 13:39:02 EDT 2008
On 30-Oct-08, at 1:24 PM, Bradley Lucier wrote:
> This is reproducible. Something strange is going on, I agree.
Don't you think this is a consequence of working with different size
rationals? Note that on my (32 bit) machine:
% gsi
Gambit v4.3.0
> (inexact->exact 152.97)
5382153398428631/35184372088832
> (inexact->exact 0.2)
3602879701896397/18014398509481984
> (inexact->exact 12.2)
3433994715870003/281474976710656
> (map fixnum? '(5382153398428631 35184372088832 3602879701896397
18014398509481984 3433994715870003 281474976710656))
(#f #f #f #f #f #f)
Are you on a 64 bit machine where all of these numbers are fixnums?
Marc
More information about the Gambit-list
mailing list