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 Darwin

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