logo       

Re: Re: Proper fractions?: msg#00141

lang.smalltalk.squeak.beginners

Subject: Re: Re: Proper fractions?

On Thu, 26 Jul 2007 14:43:41 -0700, Bert Freudenberg <bert@xxxxxxxxxxxxxxx> wrote:

This would work:

| x |
x := 4/3.
'(', x integerPart printString, '+', x fractionPart printString, ')'

and also would have the property of being self-evaluating just like fractions did before.

Though I agree with Nic that this is not what I'd want to see by default.

Well, y'all can go to town modifying whatever.

I was simply asking for you provided here. That's why I asked on the noob list.

Thanx.


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

News | FAQ | advertise