Top "Integer-overflow" questions

Integer overflow occurs when the result of an operation is larger than the maximal value that can be represented by the underlying integer type.

How do I detect unsigned integer multiply overflow?

I was writing a program in C++ to find all solutions of ab = c, where a, b and c together …

c++ c integer-overflow
How does Java handle integer underflows and overflows and how would you check for it?

How does Java handle integer underflows and overflows? Leading on from that, how would you check/test that this is …

java integer integer-overflow
Warning : overflow in implicit constant conversion

In the following program, the line 5 does give overflow warning as expected, but surprisingly the line 4 doesn't give any warning …

c++ gcc warnings overflow integer-overflow
Why Use Integer Instead of Long?

I often see questions relating to Overflow errors with vba. My question is why use the integer variable declaration instead …

integer long-integer integer-overflow vba
What does BigInteger having no limit mean?

I looked into this stackoverflow question relating to Big Integer and specifically I do not understand this line (the words …

java biginteger integer-overflow
How to check for signed integer overflow in C without undefined behaviour?

There's (1): // assume x,y are non-negative if(x > max - y) error; And (2): // assume x,y are non-negative int …

c integer-overflow
Catch and compute overflow during multiplication of two large integers

I am looking for an efficient (optionally standard, elegant and easy to implement) solution to multiply relatively large numbers, and …

c integer bit-manipulation multiplication integer-overflow
What are arithmetic underflow and overflow in C?

What do arithmetic underflow and overflow mean in C programming?

c math integer-overflow
Why is unsigned integer overflow defined behavior but signed integer overflow isn't?

Unsigned integer overflow is well defined by both the C and C++ standards. For example, the C99 standard (§6.2.5/9) states A …

c++ c undefined-behavior integer-overflow
What happens when auto_increment on integer column reaches the max_value in databases?

I am implementing a database application and I will use both JavaDB and MySQL as database. I have an ID …

database auto-increment integer-overflow lastinsertid