power of a number

Lex Spoon lex at cc.gatech.edu
Mon May 23 14:39:14 UTC 2005


On Mon, May 23, 2005 at 02:53:16PM +0200, Guenther Schmidt wrote:
> I want to do an arithmetic expression like:
> 
> 2 power 3, ie. (2 * 2 * 2).

Others have answered the question.  Just so you know, though, Ted Kaehler's
method finder is excellent for finding these answers.  If you start up
Squeak, open a method finder (with the "open" menu), and type in:

	2 . 3 . 8

Then you will find the existing method for this operation.  This is
a fantastic tool for all the little basic questions that people have
when they are learning a new language.

-Lex



More information about the Squeak-dev mailing list