RE: power of

2002-05-22 Thread Jackson, Harry
> -Original Message- > From: Prachi Shroff [mailto:[EMAIL PROTECTED]] $a ** $b * COLT Telecommunications Registered in England No. 2452736 Registered Office: Bishopsgate Court, 4 Norton Folgate, Londo

Re: power of

2002-05-22 Thread Michael Lamertz
On Wed, May 22, 2002 at 09:53:09AM -0400, Prachi Shroff wrote: > Hi! > > This may sound as a very stupid question, but here it comes anyways. Has > anybody come across a function that wold calculate the power of a number, > like the pow function in C. Simply, x to the power of y. perldoc p

Re: power of

2002-05-22 Thread Jonathan E. Paton
> This may sound as a very stupid question, but here it > comes anyways. Has anybody come across a function that > would calculate the power of a number, like the pow > function in C. Simply, x to the power of y. Yeah... I've come across one before. I'll take this oppertunity to gently remind yo

RE: power of

2002-05-22 Thread Nikola Janceski
are you looking for the ** operator? perldoc perlop Exponentiation Binary "**" is the exponentiation operator. It binds even more tightly than unary minus, so -2**4 is -(2**4), not (-2)**4. (This is implemented using C's pow(3) function, which actually works on doubles