logo       

Proper fractions?: msg#00137

lang.smalltalk.squeak.beginners

Subject: Proper fractions?

Hey, guys:

Any way to make the fraction class print itself out with its integer part separate from its fractional part. In other words, if I have

4/3

(an "improper" fraction) can I make it print out as:

1 1/3

? I mean, I know I can write a routine that does this but it seemed odd to me that one doesn't exist.

(And who came up with that whole "improper" terminology? Some guys with small numerators, I'd bet....)

===Blake===


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise