IntExp
not ratedReturns base^expo as an exact integer value.
function IntExp takes integer base, integer expo returns integer
if expo == 0 then
return 1
elseif (expo / 2) * 2 == expo then
return IntExp(base*base,expo/2)
else
return base * IntExp(base, expo - 1)
endif
endfunctionNo comments.