Re: inexact->exact in 1.7.1

2005-04-15 Thread Rick Taube
Thank you, i was porting my code from 1.6.7 to the new version where it broke and I forgot about this. time for a m-x tags-search! --rick This happens because Guile now has exact rationals. This NEWS entry explains the behavior: ** inexact->exact no longer returns only integers. Without

Re: inexact->exact in 1.7.1

2005-04-15 Thread Marius Vollmer
Rick Taube <[EMAIL PROTECTED]> writes: > this behavior of inexact->exact in guile 1.7.1 causes my program to > become confused: > > guile> (inexact->exact 48.0) > 48 > guile> (inexact->exact (* .1 480.0)) > 48 > guile> (inexact->exact (* (- 1.1 1) 480.0)) > 3377699720527875/70368744177664 This ha

Re: inexact->exact in 1.7.1

2005-04-15 Thread Per Bothner
Rick Taube wrote: this behavior of inexact->exact in guile 1.7.1 causes my program to become confused: I suspect you're the one who is confused. You need to learn about floating-point arithmetic. (- 1.1 1) does not necessarily give the same result as 0.1. i attempted to see if guile 1.7.2 fixes th

inexact->exact in 1.7.1

2005-04-15 Thread Rick Taube
this behavior of inexact->exact in guile 1.7.1 causes my program to become confused: guile> (inexact->exact 48.0) 48 guile> (inexact->exact (* .1 480.0)) 48 guile> (inexact->exact (* (- 1.1 1) 480.0)) 3377699720527875/70368744177664 guile>(quit) $ uname -a Darwin pinhead.music.uiuc.edu 7.8.0 Darw