function pow(base::Number, exp::Integer) r = one(base) for i = 1:exp r *= base end return r end