Hi,

[EMAIL PROTECTED] (Ludovic Courtès) writes:

>   guile> (define x (* 123123123123123123 100))
>   guile> x
>   12312312312312312300
>   guile> (set! x (+ x 12))
>   guile> x
>   12312312312312312312
>   guile> (set! x (/ x 100))
>   guile> x
>   3078078078078078078/25 ;; this is wrong!

The fraction here is actually correct, only the result of
`exact->inexact' is rounded.

>   guile> (exact->inexact x)
>   123123123123123000.0

Thanks,
Ludovic.



_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel

Reply via email to