Apples to Oranges in FileStream

Donald T. Major, II sasdtm at unx.sas.com
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'
     http://www.unx.sas.com/~sasdtm/





More information about the Squeak-dev mailing list