--- a/Fraction.st Fri Mar 31 04:48:54 1995 +0200
+++ b/Fraction.st Fri Mar 31 04:52:25 1995 +0200
@@ -21,7 +21,7 @@
COPYRIGHT (c) 1989 by Claus Gittinger
All Rights Reserved
-$Header: /cvs/stx/stx/libbasic/Fraction.st,v 1.15 1995-03-08 23:38:25 claus Exp $
+$Header: /cvs/stx/stx/libbasic/Fraction.st,v 1.16 1995-03-31 02:50:03 claus Exp $
'!
!Fraction class methodsFor:'documentation'!
@@ -42,7 +42,7 @@
version
"
-$Header: /cvs/stx/stx/libbasic/Fraction.st,v 1.15 1995-03-08 23:38:25 claus Exp $
+$Header: /cvs/stx/stx/libbasic/Fraction.st,v 1.16 1995-03-31 02:50:03 claus Exp $
"
!
@@ -50,9 +50,8 @@
"
Instances of Fraction represent fractional numbers consisting of
a numerator and denominator. Both are themselfes arbitrary precision
- integers. Fractions are usually created by dividing Integers using //
- (for exact division).
-"
+ integers. Fractions are usually created by dividing Integers using /
+ (for exact division)."
! !
!Fraction class methodsFor:'initialization'!
@@ -427,6 +426,13 @@
denominator:denominator) reduced
!
+quotientFromInteger:anInteger
+ "sent when an integer does not know how to divide by the receiver, a fraction"
+
+ ^ (self class numerator:numerator
+ denominator:(anInteger * denominator)) reduced
+!
+
lessFromInteger:anInteger
"sent when an integer does not know how to compare to the receiver, a fraction"