help-smalltalk
[Top][All Lists]
Advanced

[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 !
'3/4'
st> var5 storeOn: stdout !
(Fraction numerator: 3 denominator: 3)Fraction new "<0x1057dc0>"
st>
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]