|
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!
[Prev in Thread] | Current Thread | [Next in Thread] |