pow for non-int values corrected