[Top][All Lists]

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

[Help-smalltalk] Fractions bug

From: J Pfersich
Subject: [Help-smalltalk] Fractions bug
Date: Sun, 21 Jan 2007 22:40:11 -0700

I found this:
st> var5 := Fraction numerator: 3 denominator: 4 !
Fraction new "<0x1057dc0>"
st> var5 printString !
st> var5 storeOn: stdout !
(Fraction numerator: 3 denominator: 3)Fraction new "<0x1057dc0>"
The numerator is also used as the denominator.

I also found that the class comment is inaccurate, the arithmatic operators
do not answer a reduced fraction, the reduce private method is never accessed.

reply via email to

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