# Weird floating point under/overflow behavior

**URL:** <https://discourse.julialang.org/t/weird-floating-point-under-overflow-behavior/112340>\
**Category:** General Usage\
**Created:** [March 31, 2024, 1:23am UTC](https://discourse.julialang.org/t/weird-floating-point-under-overflow-behavior/112340 "2024-03-31T01:23:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [March 31, 2024, 1:26am UTC](https://discourse.julialang.org/t/weird-floating-point-under-overflow-behavior/112340/2 "2024-03-31T01:26:28Z")

</div>

This isn’t about floating point — it’s the integers! Check the value of `2^64`.

> [@Julia messes up integer exponents?](https://discourse.julialang.org/t/julia-messes-up-integer-exponents/20773):
>
> I was using avogadro’s number in a calculation and couldn’t figure out why the results were not matching my matlab or python code… Turns out using integers as exponents gets you in trouble in Julia?They start off innocent but at higher powers, but really not that big for science (Avogadro’s number is very popular!!! as are many other constants…) julia\> 10^1 10 julia\> 10^2 100 julia\> 10^5 100000 julia\> 10^15 1000000000000000 julia\> 10^20 7766279631452241920 julia\> 10^16 10000000000000000 julia\> …

---

_[View the full topic](https://discourse.julialang.org/t/weird-floating-point-under-overflow-behavior/112340)._
