in reply to Re^3: Non-integer print output???in thread Non-integer print output???
interesting discussion here on what's the optimum way to do integer exponentiation, squaring is the standard but not the most optimal.
https://stackoverflow.com/questions/101439/the-most-efficient-way-to-implement-an-integer-based-power-function-powint-int