Can Integers *Ever* Overflow? #1208
|
The aiken docs say:
Does this apply to intermediate run-time results too? Like if I'm doing arithmetic, do I need to be concerned about integer overflow? I think the answer is no, but I'm looking for a sanity check 😅 |
Answered by
KtorZ
Nov 13, 2025
Replies: 2 comments
|
The short answer is: no. The longer answer is: yes, there's a practical limit that's around 2^265 iirc. So in practice, you still don't need to worry about it. |
0 replies
Answer selected by
fallen-icarus
|
Sorry; I double checked. The maximum is in fact |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The short answer is: no.
The longer answer is: yes, there's a practical limit that's around 2^265 iirc. So in practice, you still don't need to worry about it.