Apples to Oranges in FileStream

Donald T. Major, II sasdtm at
Fri Aug 21 10:00:36 UTC 1998

Michael Donegan wrote:

> I'd like it if both:
> 2 log
> and
> 2 ln
> returned answers, but they don't.

 Well, at least this request is a simple one - just create a method for each in
SmallInteger where the body is basically:

     ^self asFloat OPERATION

where 'OPERATION' is replaced with 'log' or 'ln'. If you want an integer result,
decide how you want it rounded or truncated and tack it on.

 ..  Donald Major           677-8000, x6937        "I don't remember any
dtm  System Developer       sasdtm @ unx sas com    explosions in 'Bambi'..."
     SAS Instutitute Inc                                Lexington - 'Gargoyles'

More information about the Squeak-dev mailing list