changed int to float for pow() function. This was causing compiler to fa...

...il on Mac OS X.