Float

Frederic Pluquet fpluquet at ulb.ac.be
Fri Nov 16 07:06:15 UTC 2007


Hello,

I found a bug in Squeak (3.0, #7067)... The following code returns true:

(#(0.3 0.5 0.2) inject: 0.0
into: [:sum :proportion | sum + proportion]) = 1.0


But this following code returns false !
(#(0.3 0.6 0.1) inject: 0.0
into: [:sum :proportion | sum + proportion]) = 1.0


An idea ?
Fréd
-- 
Frédéric Pluquet
Université Libre de Bruxelles (ULB)
Assistant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20071116/1ee9fcb2/attachment.htm


More information about the Squeak-dev mailing list