Bug 37320

GemStone/S

6.1.6, 6.1.5, 6.1.x, 6.0.x, 5.1.5.1

All

6.2

Integer raisedTo: returns Float

When raisedTo: is sent to an Integer, the result is a Float.
However, the ANSI specification says that if the argument to
raisedTo: is an Integer, the result should be the same type as the
receiver.

Workaround

raisedToInteger: returns the correct result.


Last updated: 8/6/07