chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Why doesnot "(+ 1/2 1/3)" equal to 5/6 ?


From: z_axis
Subject: [Chicken-users] Why doesnot "(+ 1/2 1/3)" equal to 5/6 ?
Date: Wed, 07 Nov 2012 23:57:33 -0000
User-agent: Opera Mail/11.62 (FreeBSD)


(+ (+ 1/2 1/3)

Warning: cannot represent exact fraction - coerced to flonum: "1/2"
Warning: cannot represent exact fraction - coerced to flonum: "1/3"
0.8333333333333331/2 1/3)


In racket, it is 5/6. And as i know it is 5/6 for any lisp implementation.


Sincerely!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]