implement numeric scale
changed int to float for pow() function. This was causing compiler to fail on Mac OS X.