# Integer power of large Integer returning very wrong results

**URL:** <https://discourse.julialang.org/t/integer-power-of-large-integer-returning-very-wrong-results/98747>\
**Category:** General Usage\
**Tags:** base\
**Created:** [May 12, 2023, 3:06pm UTC](https://discourse.julialang.org/t/integer-power-of-large-integer-returning-very-wrong-results/98747 "2023-05-12T15:06:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [May 12, 2023, 3:11pm UTC](https://discourse.julialang.org/t/integer-power-of-large-integer-returning-very-wrong-results/98747/5 "2023-05-12T15:11:55Z")

</div>

For the second time this week I can dig out this classic thread:

> [@Discussion about integer overflow](https://discourse.julialang.org/t/discussion-about-integer-overflow/69627):
>
> Yes, it is a limitation but I would not call it big since we could use BigInt if Int64 is not enough and an overflow is something we can catch. I find more worrying this: \> julia\> 1 / 10^20000 \> Inf I’d rather have an overflow here than Inf, or at least an Infinitesimal value… Maybe something we could ask for future versions of Julia.

---

_[View the full topic](https://discourse.julialang.org/t/integer-power-of-large-integer-returning-very-wrong-results/98747)._
