[Number] toPowerOf: [power] | Manual

[Number] toPowerOf: [power]

Returns a new object representing the number to the specified power.

 x := 2 toPowerOf: 8. #x will be 256

 The example above will raise 2 to the power of 8 resulting in
 a new Number object: 256.

back to homepage
back to manual menu

This API reference guide has been generated automatically from source code comments using the shtml.ctr script.