[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it a bug in arithmetic operation, in printf ???
This is a bug in the printer! I don't have alpha12 handy, but it may
work properly if you use the ~a or ~s formatter in the printf.
It has been fixed in the version in our CVS archives. Sorry for the
trouble.
Robby
At Thu, 28 Feb 2002 14:54:24 -0500, "Andre Mayers" wrote:
> Good day,
>
> (define (test a)
> (printf "~%~s" a))
>
> (test (/ (+ 5 -10) 10)) ;; display -1.5
> (test (/ (+ 8 -10) 10)) ;; display -1.8
>
> The answer should always be between -1.0 and 1.0
>
> I use DrScheme, version 200alpha12, english
> with windows XP; pentium iv;
>
> Andre Mayers
>