#nthRoot: anInteger is your friend.
i.e.:
256 nthRoot: 8 "will return 2"
--
View this message in context:
http://forum.world.st/Opposite-of-raisedToInteger-or-raisedTo-tp4642778p4642780.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Deepi wrote
>
> Is there any method that does this in Pharo?
>
Yes, again, #nthRoot: :)
It is available in Pharo 1.4 at least.
Did you try evaluating "27 nthRoot: 3" in a Workspace?
Regards,
--
Esteban.
--
View this message in context:
http://forum.world.st/Opposite-of-raisedToIntege
Deepi wrote
>
> yes . I am using pharo 2.1 and there no nthRoot: in it.
>
Are you sure you're using Pharo 2.1? Because there is no such version (yet).
In Pharo 2.0 there is a #nthRoot: method. I don't know what will happen with
in the v2.1, but I'm pretty sure it will remain there.
Regards,